1
我已經通過文檔here,據此我正在爲JIRA創建一個問題。我知道我犯了一個非常小的錯誤。 我試圖創建命令行(以後我會在我的Java代碼集成) 新JIRA要求從我的Mac端我試圖運行:從命令行使用curl創建JIRA問題
curl -D- -u username:password -X POST --data {"fields":{"project":{"key": 「PROJECTKEY"},"summary": "REST ye merry gentlemen.","description": "Creating of an issue using project keys and issue type names using the REST API","issuetype": {"name": "Bug"}}} -H "Content-Type: application/json" https://mycompanyname.atlassian.net/rest/api/2/issue/
我相信這有事用「數據」做。 在此先感謝。這個例子來自文檔鏈接本身。
輸出:我沒有在我的終端,沒有錯誤,沒有預期的輸出。
PROJECTKEY取自我的儀表板中所有項目列表的KEY列。
你需要把你的發佈數據放在單引號中 –
你能舉個例子嗎?在此先感謝.. –
'--data'{「fields」:.......}'' –