Forums

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

Validation when moving an issue

Pedro J. Acosta April 2, 2019

Hi all,

I'm trying to perform a validation to show me an error message when moving an issue that does not meet a specific condition, I'm testing with validations script and listener but I get nothing, can you help me please?

 

Regards.

1 answer

1 accepted

1 vote
Answer accepted
Marc Minten (EVS)
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.
April 2, 2019

Your title says "clone transition", your text "moving an issue" : can you be more correct ?

What validations script/listener (?sic) ? What is your "specific condition" ?

etc..etc..

Pedro J. Acosta April 2, 2019

Hello Marc,

Sorry for the confusion, I am trying to add some kind of validation when moving issues, since we want certain users not to move the created issues to some particular issue types.

 

Regads.

Marc Minten (EVS)
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.
April 2, 2019

Ok, but moving issues is not a workflow action, correct ? So you can't use (workflow) validation scripts ...

Listener scripts can capture the move, and find out the move is not allowed, but by definition, a listener script is called when the operation is done, so too late to do validation ? Correct ?

I am not sure you can add validation in some way to the (basic) Jira functionality of a Move...

Pedro J. Acosta April 2, 2019

Hello Marc,

I'm also not sure what can be done, but for example I managed to mediate a validation script in the "create" transition of an issue that shows a message to all those users that we do not want to create issues but if they can clone and want to know if there was any way to do something similar with the action of moving issue.

Marc Minten (EVS)
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.
April 2, 2019

"Create" is a (workflow) transition, and a workflow transition has validation

"Move" is an operation on an issue, and unfortunately Jira did not provide a validation mechanism on such operation...

Like Jamie Young likes this
Pedro J. Acosta April 2, 2019

Hello Marc,

I already knew about that, I just wanted to confirm if there was any other way to perform the validation without using a flow transition (such as with a Listener).

Ярема К January 19, 2021

You can capture changes that have been made on move. And if they are not valid you can change field values back and display error message what was wrong with moving.

Suggest an answer

Log in or Sign up to answer