Forums

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

Condition on workflow for strings containing certain value

Edwin Sy
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!
November 6, 2018

Is there a way to have a workflow condition that checks if a string contains a certain value within the field? For example if we are looking for contains "good", the string "this is a good build" should return true.

 

2 answers

0 votes
Alexey Matveev
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 6, 2018

Hello,

You could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could add a condition like this:

if (contains(#{custom field name}, "good")) {
  return true;
}
return false;

You can read more about conditions here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows

0 votes
Alex Christensen
Community Champion
November 6, 2018

Not out of the box, to my knowledge. You would need something like ScriptRunner or JMWE to include a scripted workflow condition or something similar.

Suggest an answer

Log in or Sign up to answer