Forums

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

Format for setting list field in Jira Automation

Deleted user
October 13, 2021

I'm trying to create an issue in another Jira instance using a webhook trigger but can't figure out how to set the components field with a list of values.

Current smart value:

Screenshot 2021-10-14 102902.png

There are many articles on accessing a list value but not setting a list value, so whilst the smart value will generate a string "Component1, Component2" the actual issue created will have no components set

The current smart value will work if there is only one component, so I know setting it by component name works but am unsure what delimiter to use to split the values so Jira will accept multiple

1 answer

1 accepted

0 votes
Answer accepted
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 Champions.
October 14, 2021

Hi @[deleted] -- Welcome to the Atlassian Community!

I believe you will need to do that with advanced edit, as shown here:

https://support.atlassian.com/jira-software-cloud/docs/advanced-field-editing-json/#Advancedfieldediting-JSON--Components

What is the source of the component values you want to set?

Kind regards,
Bill

Deleted user
October 14, 2021

It is from a webhook trigger. I did end up just using an advanced edit and that works, but I'm still curious if there is any way to set multiple values into a list without it as it does look cleaner

Like Bill Sheboy likes this
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 Champions.
October 15, 2021

Agreed; I believe only built-in to built-in field edits can do that, such as "copy from parent".

Like Deleted user likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events