Hello,
we are creating issues from external applications using Jiras REST API which works very well.
We also have some Insight custom fields that use an assign scope so when creating a new issue within Jira you can select the value "Automatic" to let the field be filled automatically using the defined IQL.
Is it somehow possible to set that value "Automatic" using the REST API and would Insight even be triggered that way?
REST API
/rest/api/2/issue
Body
{
"fields": {
"project": {
"id": "10000"
},
"summary": "something's wrong",
"issuetype": {
"id": "10003"
},
"reporter": {
"name": "admin"
}
},
"description": "bla blub",
"customfield_10505": {
"value": "Automatic"
}
}
Greetings,
Michael
Hi Michael.
The label "Automatic" is showing in a CF (as a "Placeholder") whenever there is a Filter Assign Scope defined for the CF in the Insight CF configuration. In order to trigger the Filter Assign scope, please set the following in the JSON for the CF:
"customfield_10505": [{ "key": "AUTOMATIC-ASSIGN" }]
Note that your JSON contains an extra "}" after "reporter" that needs to be removed:
{
"fields": {
"project": {
"id": "10000"
},
"summary": "something's wrong",
"issuetype": {
"id": "10003"
},
"reporter": {
"name": "admin"
},
"description": "bla blub",
"customfield_10505": [{ "key": "AUTOMATIC-ASSIGN" }]
}
}
Kind regards,
Yinon
Team Riada
Thank you very much for the answer, that helps us a lot! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.