Forums

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

Looking for a alternative for the condition “Compare two values", Jira Workflow Toolbox

Marco Brundel
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.
February 7, 2022

Hello,

 In Jira DC we use the apps Scriptrunner, Automation for Jira, Jira Misc Workflow Extensions and Jira Workflow Toolbox.

We are now investigating whether we can do with fewer apps and want to phase out Jira Workflow Toolbox.

Only we are now looking for the right alternative for the condition “Compare two values" ​(Comparison condition based on two fields).

Who has a good alternative condition for us?

 

Regards, Marco

Screenshot 2022-02-07 at 15.18.18.png

3 answers

1 accepted

0 votes
Answer accepted
David Fischer
Community Champion
February 7, 2022

Hi @Marco Brundel 

You can use JMWE's Build your own condition with a very simple script: such as

!issue.customfield_12345 || !issue.customfield_12345.some(u => u.accountId == issue.reporter.accountId)

You can use the issue fields help tab below the script editor to figure out the custom field id.  

0 votes
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.
February 7, 2022

Hi @Marco Brundel 

Please consider: why are you comparing the two fields, and what do you want to do next?  Knowing the answer to that may help you narrow down which of the products can support your need after the condition.  Thanks!

Kind regards,
Bill

0 votes
Ravi Sagar _Sparxsys_
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.
February 7, 2022

Hi @Marco Brundel 

I am biased towards ScriptRunner (for good reason) because you can write custom scripts not only in workflows but other places as well like listeners. It opens up lots of possibilities and you can implement variety of use cases to cover lot of automations and customisations. The only things is that you need a resource/competency to manage those scripts which in my opinion is not that difficult for those with little bit or programming experience.

Also if you have plans to migrate to cloud then your scripts written for server needs to be rewritten for cloud.

Ravi

Suggest an answer

Log in or Sign up to answer