How to set automation to change field values

Andrea Kolářová
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 20, 2024

Hi,
Can you give me some advise, how to set the field value change using automation?

I have a field of type Radion Button called "Signature" and it has 2 values - Active and Passive. This field will only be for issue type "Signature" where there will be only 2 tickets. I need an automation that will make, that if I have a value of "Active" on one of the tickets, the other ticket will automatically have a value of "Passive". 

When I change the value on one of them, I need it to change on the other issue the other way around (from Passive to Active, or from Active to Passive).

Is it necessary to have these tickets linked?

4 answers

4 accepted

0 votes
Answer accepted
Andrea Kolářová
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 20, 2024

Thank you all, I finally found a way how to setup this automation.

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 Leaders.
December 20, 2024

Hi @Andrea Kolářová -- Welcome to the Atlassian Community!

What problem are you trying to solve with this field and the two issues?  That is, "why do this?"  Knowing that may help the community to offer better suggestions.

Until we know that...

While you could use issue linking or JQL searches in automation rules to find the issues and "flip" the field values, that may be a brittle solution.  There are a variety of reasons when rules may not run as expected (or when needed).  And so relying upon rules to keep the values "inverted" may not be 100% errorproof.  Knowing the "problem to solve" will help reveal other possible approaches.

Kind regards,
Bill

0 votes
Answer accepted
Tomislav Tobijas _Koios_
Solutions Partner
Solution Partners provide consulting, sales, and technical services on Atlassian products.
December 20, 2024

Hi @Andrea Kolářová ,

I wouldn't say it's necessary to have them linked, although I'm wondering what's the use case here. 👀

Anyway, you could construct something like the following rule:

2024-12-20 15-26-11.png

where I've just used branch to find that other 'fixed' issue for which radio button field should be changed. By just adding IF/ELSE (e.g. if Signature = Active > set Signature in other issue to "Passive" and vice versa), this should work.

Now, it all also depends if you're going to configure this on project level, or do you need to configure it on a global level, without the need to specific issue keys for other/linked Signature issue.

Hope this helps.

Cheers,
Tobi

0 votes
Answer accepted
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 20, 2024

Hi @Andrea Kolářová 

 

It will be easier if linked. Otherwise you can run a JQL branch. Make sure to uncheck "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule." as update of the field edit the same field.

 

Regards

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events