Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Update multiselect custom field using Automation for JIRA in cycle

We have automation that looks like this:

for {items} {

for {items} {


"update": {
"customfield_X" : [
{
"add": { "value":items }
}

]

}

I.e. we update the same issue in cycle - adding values to multipicker CF.

The issue is - update is just launching the update procedure, as the result some updates are running in parallel. And not all values from {items} list are in CF.

Example:

{A, B, C} in list

{A, C} - in CF as the result.

Issue history contains:

{}->{A}

{A}->{A,B}

{A}->{A,C}

 

so the first update was completed before the second started

but the second update wasn't completed as the third started.

 

Is the any known solution?

 

Thanks in advance,

Alex,

1 answer

0 votes

Hello @Alex Kiselev ,

Thanks for reaching out, and I am having some difficulty recreating the rule you are using with the details provided.

Can you grab a screenshot of the rule configuration page, and include the full syntax of the JSON as you have it formated for the Edit issue action, so I can get a better understanding of how you have this setup? 

I am particularly interested in the "For" section as well as the full syntax for the edit action JSON.   i.e. for the "For" section, are you using  "Advanced Branching" and setting a smart value, and what is the smart value you set, or are you using a "Related issues" branch rule referencing the current issue?

Regards,
Earl

Hello @Earl McCutcheon 

Thank you for the help.

Actually, we have found the solution:

we use API calls for update operation with the "Wait for response" option instead of Update field action in the rule.

 

Best regards.

Like Earl McCutcheon likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you