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

Scriptrunner how compare 2 numbers field if it is different, do not open an issue

Fernando Passos
Contributor
April 5, 2022

Hi guys.

Can you help me?

I Would like compare two number field (Valu_A) (Value_B) if it is different, do not open an issue.

Its possiblle? I usually use Scriptrunner...

Thanks.

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 8, 2022

Hi @Fernando Passos ,

you can do that by a custom scripted validator on creation in your workflow.

Add a validator "Simple scripted validator [Script Runner]" with the following code :

cfValues['Custom Field A'] != cfValues['Custom Field B']

Please add field names at your convenience.

It should work,

Fabio

Fernando Passos
Contributor
April 11, 2022

It worked perfectly, thank you very much @Fabio Racobaldo _Herzum_ .

Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 11, 2022

you're welcome @Fernando Passos  ;)

Like Fernando Passos likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events