Hello,
I created a custom name "Perimeter" which contains 2 values : Industry ; Headquarters.
I would like to populate it when I create an issue. So I use an automation like this :
But this doesn't populate my custom field (previous action which sets description field works)
How can I do ?
Try deleting all data from the "Additional fields" area and use the "Choose fields to set..." button.
Hello,
add the editing of the field in the first action "Edit work items fields" -> Click on it, then click on the dropdown in the middle are of the action (right side of the screen) and choose the "Perimeter" field. It will then pop up a little bit further down in the action, and you can select the value.
If you want to do it via a "advanced" issue editing, you need to specify the actual value of the select field option, which is a number (the id of the select field option) as far as i remember.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect, it works now with !
{
"fields": {
"customfield_10103": { "value": "Industry" }
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nope. The change you did was fine and will work, but i referred to the value youre setting. "Industry" in this case.
Navigate to your customfields in jira, go to the "Perimeter" field, click on "context and default value" and then "edit options" for the context youre interested in. Once you hover over the "edit" link next to the option youre interested in, you can see the id in the url (see bottom end of the following screenshot).
{
"fields": {
"customfield_10103": 10879 (or whatever your number will be)
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Update: Heeeeyyy nice. I didnt know it works like that too :D
{
"fields": {
"customfield_10103": { "value": "Industry" }
}
}
Thanks for letting me know, and good job solving the problem!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oops, I modified my previous reply. I confirm, it works.
Now I would like to set the value of the parent for this custom field.
I try this but Jira tells me that the json synthax is not valid :
{
"fields": {
"customfield_10103": { "value": {{issue.parent.fields.customfield_10103}} }
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Id or value works to complete your comment
https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could add an action called "log action" before this editing action and see what value is stored in that field for the parent. Because it looks kinda alright to me (without trying myself). just add the value in double curlies to the log action and see what the audit log spits out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the solution thanks to you, Copilot and the documentation.
Have a good day !
{
"fields": {
"customfield_10103": {
"value": "{{issue.parent.fields.customfield_10103.value}}"
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.