このソリューションは、管理者権限を必要とし、あなたの現在のユーザーが表示できるプロジェクトがすべて表示されません。
https://example.com/rest/api/2/project
応答はこちらをご覧ください。
https://docs.atlassian.com/jira/REST/latest/#d2e4972
JSON配列を返します。
[
{
"self": "http://www.example.com/jira/rest/api/2/project/EX",
"id": "10000",
"key": "EX",
"name": "Example",
"avatarUrls": {
"24x24": "http://www.example.com/jira/secure/projectavatar?size=small&pid=10000",
"16x16": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
"32x32": "http://www.example.com/jira/secure/projectavatar?size=medium&pid=10000",
"48x48": "http://www.example.com/jira/secure/projectavatar?size=large&pid=10000"
},
"projectCategory": {
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000",
"id": "10000",
"name": "FIRST",
"description": "First Project Category"
}
},
{
"self": "http://www.example.com/jira/rest/api/2/project/ABC",
"id": "10001",
"key": "ABC",
"name": "Alphabetical",
"avatarUrls": {
"24x24": "http://www.example.com/jira/secure/projectavatar?size=small&pid=10001",
"16x16": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10001",
"32x32": "http://www.example.com/jira/secure/projectavatar?size=medium&pid=10001",
"48x48": "http://www.example.com/jira/secure/projectavatar?size=large&pid=10001"
},
"projectCategory": {
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000",
"id": "10000",
"name": "FIRST",
"description": "First Project Category"
}
}
]
私はそれを見つけ出し、このリンクを見つけました。 http://jira.atlassian.com/secure/CreateIssueDetails!init.jspa?pid=10420 HTMLリンクを使用してJIRAの問題を作成します。 しかし、私はいくつかの名前 'ABC'で私のプロジェクトを作成したとき、私はそのpid = xxxxを得ることができません.... ちょうど私がそのPIDを得ることができますから知りたいですか? – jasmeet24
ローカルホストでそのリンクを実行すると、次のエラーが表示されます。有効なプロジェクトを選択していない。 – jasmeet24