Forums

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

Why is my automation only bringing in 1/2 of a custom field tied to two milti-select fields?

Ganea_ Merissa March 27, 2025

I have a custom field in Jira for "Community/Entity" that prompts me to select a community, then prompts me to select an entity #, then merges the two dropdown selections into one field with the Custom Field ID # (10031). I am trying to write an automation where if the parent has the "Community/Entity" field filled out, automation will fill the "Community/Entity" out for the child issues.

I have created a variable name:   customval

Smart Value: {{issue.parent.customfield_10031.value}}

Here is the "edit issue" value I am using:

{"fields": { "customfield_10031": {"value": "{{customval}}"} } }

My branch is For JQL parent = {{issue.key}}

Then Edit the issue additional field: 

{ "fields": { "customfield_10031": {"value": "{{customval}}"} } }

-------------------------------

When this automation runs it returns successful, but only the community updates and not the entity#. 

 

Thank you in advance for your help!

MG

2 answers

1 vote
Bill Sheboy
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.
March 27, 2025

Hi @Ganea_ Merissa -- Welcome to the Atlassian Community!

What is the type of your "Community / Entity" field?  Is it a selection list, cascading field?

If so, the "parent" and "child" values must be selected separately:

the parent is {{issue.customfield_10031.value}}
the child is {{issue.customfield_10031.child.value}}

And, what is the type into which you are trying to store the values?  If they are the same, you could try copying the value from the parent issue using the ... option at the right of the field (in the Edit Issue action), or using JSON:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Cascading-select-custom-field

 

Kind regards,
Bill

Ganea_ Merissa March 27, 2025

Hi Bill. "Community/Entity" is a selection list, cascading field. That would not change for the child issue, as it is still the same field I am trying to update. 

Bill Sheboy
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.
March 27, 2025

Thanks for confirming that.

Have you first tried using the Edit Issue action to copy from the parent?  If that does not work, please try the advanced edit with JSON I described above.

And if that does not help...

Please post an image of your complete rule, of the edit issue action, and of the audit log details showing the rule execution.  Those will help provide context for your question.

Like Trudy Claspill likes this
1 vote
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 27, 2025

Hello @Ganea_ Merissa 

Welcome to the Atlassian community.

What type of project are you using? Get that information from the Type column on the View All Projects page under the Projects menu.

What type of field is "Community/Entity"?

What type of field is custom field 10031?

Can you provide a screen image for an issue where both these fields are populated, showing those two fields? (I don't think we need to see any of the other data in the issue at this time.)

Why are you merging and copying the data from the first to the second?

Please provide a screen image of your entire automation rule and all the details from the audit log entry from when the rule ran. Make sure that in the audit log entry you click all the ">" characters on the right to expand all the details of the entry.

Ganea_ Merissa March 27, 2025

What type of project are you using? Company-managed software

What type of field is "Community/Entity"? "Community/Entity" is a selection list, cascading field

What type of field is custom field 10031? a selection list, cascading field (Note: Community/Entity is the same as the custom field 10031)

Can you provide a screen image for an issue where both these fields are populated, showing those two fields? Community_Entity Field.png

Why are you merging and copying the data from the first to the second? People are filling out the Community/Entity for the parent, but not doing it for the child issues, and it needs to be done for reporting and analytic purposes. We are trying to avoid making this field mandatory by just copying from the parent if the stories are left blank. Each community has an associated entity number. The business just chooses to use a custom field to view this as one field vs two.

Screenshot1.png

Custom Variable.png

And edit issue fields.png

Then edit issue fields.png

Ganea_ Merissa March 27, 2025

Audit Logs: Audit Logs.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 27, 2025

Thank you for that additional information.

So you are trying to copy data from field "Community/Entity" in the parent issue to the exact same field in the child issue. The field is a Select List (cascading), and its ID is 10031.

The bit about merging and copying the data to a field confused me.

I agree with @Bill Sheboy 's suggestion that you try using the COPY option rather than the JSON editing option.

In the Edit Issue action, after selecting the "Community/Entity" field, click on the three dots to the right of the field and select copy

Screenshot 2025-03-27 at 9.55.31 AM.png

That will insert some text as shown below. Click directly on that text.

Screenshot 2025-03-27 at 9.56.45 AM.png

That will open a pop-up allowing you to select the source issue and the source field from which to copy the data. You should be able to change the Issue to copy value from selection to Parent. (Ignore my red arrow below. I copied this from another post I made about changing the source field in this copy operation.)

Screenshot 2025-03-27 at 9.57.40 AM.png

 

Like Bill Sheboy likes this
Ganea_ Merissa March 27, 2025

The problem I am having is "Community/Entity" is not an option I can choose in the "Choose fields to set" dropdown, so I have to use more options, additional fields and code to "find" it. 

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 27, 2025

Gotcha!

I believe the answer is provided by @Mark Segall in an answer he put on this post:

https://community.atlassian.com/forums/Jira-questions/Automation-Copy-select-list-cascading-custom-field-from-an-issue/qaq-p/2347573

{
"update": {
"customfield_10031": [
{
"set": {
"value": "{{issue.parent.fields.customfield_10031.value}}",
"child": {
"value": "{{issue.parent.fields.customfield_10031.child.value}}"
}
}
}
]
}
}

I tested this in my own environment, with an appropriate id for a Select List (cascading) field, where the child issue was the trigger issue of the rule. It worked.

Like Ganea_ Merissa likes this
Ganea_ Merissa March 28, 2025

Thank you for spelling out the code I need to use...This worked!!

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2025

Great!

If your requirement has been addressed with the help of our response, please consider clicking on the Accept Answer buttons above our response threads to mark your Question as Solved.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events