Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Populate a custom field

Sébastien OZANNE June 10, 2025

Hello,

I created a custom name "Perimeter" which contains 2 values : Industry ; Headquarters.

image.png

I would like to populate it when I create an issue. So I use an automation like this :

image.png

But this doesn't populate my custom field (previous action which sets description field works)

How can I do ?

2 answers

0 votes
Artsiom R
Contributor
June 10, 2025

Hi @Sébastien OZANNE 

 

Try deleting all data from the "Additional fields" area and use the "Choose fields to set..." button.

 

Screenshot.png

0 votes
Michael Wohlgemuth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2025

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.

 

Sébastien OZANNE June 10, 2025

Perfect, it works now with !

{
"fields": {
"customfield_10103": { "value": "Industry" }
}
}

Michael Wohlgemuth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2025

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)
}
}

Screenshot 2025-06-10 154545.png

Like Sébastien OZANNE likes this
Michael Wohlgemuth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2025

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! 

Like Sébastien OZANNE likes this
Sébastien OZANNE June 10, 2025

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}} }
}
}

Michael Wohlgemuth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2025

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. 

Sébastien OZANNE June 10, 2025

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}}"
}
}
}

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events