2017-01-31 6 views
-2

私は以下のカスタムフィールドを持っています。どのように私は、フィールドとしてのREST APIJira rest api問題の作成にカスタムフィールドを挿入

"customfield_10300":{ 
    "required":false, 
    "schema":{ 
     "type":"option", 
     "custom":"com.atlassian.jira.plugin.system.customfieldtypes:select", 
     "customId":10300 
    }, 
    "name":"Severity", 
    "hasDefaultValue":false, 
    "operations":[ 
     "set" 
    ], 
    "allowedValues":[ 
     { 
     "self":"http://sjira/rest/api/2/customFieldOption/10303", 
     "value":"Blocker", 
     "id":"10303" 
     }, 
     { 
     "self":"http://sjira/rest/api/2/customFieldOption/10304", 
     "value":"Critical", 
     "id":"10304" 
     } 
    ] 
} 
+0

いいえ、これはあなたが '作成発行view'に追加したく –

+0

重複していないのですか? – ppasler

+0

あなたの質問を明確にしてください。 – ppasler

答えて

1

を使用してJIRAで問題を作成するために、JSONでそれを渡すかは、あなたが選択フィールドを移入するためにJSON形式を使用する必要があります「を選択し、」タイプからである。ここでは

例:

{ 
    "fields": { 
     "project": 
     { 
      "key": "PKEY" 
     }, 
     "summary": "Your summary", 
     "description": "your description", 
     "issuetype": { 
      "name": "Task" 
     },  
     "customfield_10013": { "value": "Blocker" }  
    } 
} 

いくつかの詳細はここで見つけることができます:https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-create-issue

関連する問題