Create Issue Field Option
POST {{baseUrl}}/rest/api/3/field/:fieldKey/option
Creates an option for a select list issue field.
Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
Request Body
{"value"=>"<string>", "properties"=>"<object>", "config"=>{"scope"=>{"projects"=>["<long>"], "projects2"=>[{"id"=>"<long>", "attributes"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}], "global"=>{"attributes"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}}, "attributes"=>["<string>"]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"id":1,"value":"Team 1","properties":{"leader":{"name":"Leader Name","email":"lname@example.com"},"members":42,"description":"The team's description","founded":"2016-06-06"},"config":{"scope":{"projects":[],"projects2":[{"id":1001,"attributes":["notSelectable"]},{"id":1002,"attributes":["notSelectable"]}],"global":{}},"attributes":[]}}