Forums

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

Updating the display values of a cascading select list

Paul Konen November 26, 2024

Syncing two systems together JSM / HELIX.

If the values in a cascading select list are changed on the HELIX side and via a web hook, it tells the automation rule the new values, how can I change what they are.

I can't do an Edit Issue because that custom field doesn't show up.

I can't seem to find the correct API call that will give me the values of Level 1 / Level 2 to then do some digging.

It seems I need to find the matching JSM value and then utilize Edit Issue using the Additional Fields part to do the change.

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

 

1 answer

1 accepted

4 votes
Answer accepted
Marc - Devoteam
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.
November 27, 2024

Hi @Paul Konen 

My understanding is that new values have to be added to a cascading select list.

Jira automation can't do this, it can be used (via JSON) to set existing values from the options in the field, not create new ones.

Via the API there are options to updaet a custom field, see: api-rest-api-3-field-fieldid-put 

Paul Konen November 27, 2024

That's what I'm looking for is to just the set the value to something I already have in my list.

Problem is, as I see it, you can't just say set either level to the actual value but rather the JIRA reference value.

Top Level - Book Type: Comic (12345)

Child Level - Book Name: The Far Side (12346)

to 

Top Level - Book Type: Calendar (12350)

Child Level - Book Name: The Far Side (12351)

From my understanding, you would have to find the 5 digit number that equals what you desire and then update.

 

Marc - Devoteam
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.
November 27, 2024

Hi @Paul Konen 

See this article, set-value-for-cascading-field-with-jira-automation 

Correct custom field ids can be found via the API, use the API call:

https://<instance_name>.atlasisan.net/rest/api/latest/field or find-my-custom-field-id-number-in-jira 

Like Paul Konen likes this
Paul Konen November 27, 2024

That was so easy!!  Thank you.

Like Marc - Devoteam likes 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