Forums

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

Validation for a transition for workflow

Arjun Hazari May 10, 2018

I want to configure the validation in jira where the issue should transition to status staging only when the System field fix version is equal to Custom field Sign-off Version else there should be a message as " Fix versions and Sign-off Versions do not match". 

Can anyone suggest what can we use in this case or a groovy script for this configuration?

 

2 answers

0 votes
Arjun Hazari May 10, 2018

@Alexey Matveev we have script runner can so can you let me know know the validation for this? How to configure this I am new to script runner.

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.
May 10, 2018

You can user plugins like Power Scripts, ScriptRunner or Workflow Toolbox.

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.
May 10, 2018

You should open validators tab for the transition and add the Script Validator validator. Then choose Simple Scripted validator. Add the script which checks your condition to the Condition Field and the error message to the Error Message field. Save changes and publish workflow.

Suggest an answer

Log in or Sign up to answer