Forums

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

Jira cloud how to restrict a resolution upon transition

Robert Nadon November 1, 2019

Hi all,

Help :-) Jira cloud scriptrunner does not yet have a scripted validator.  Does anyone know of another way to restrict closing an issue with a given resolution.

Case:  The workflow allows to transfer to closed from any status.  However there is a proper path for fixed resolution (In progress -> QA -> Releasing -> closed, and I want to make sure that unless that path is taken (which has a different transition to closed then from anywhere else) the resolution cannot be marked as "Fixed".   It needs another resolution such as duplicate, abandoned, etc, anything but fixed.

This was simple in onprem version. It was just an issue.resolution != fixed for a simple scripted validator.  

Thanks in advance,

Robert

1 answer

4 votes
Oliver Siebenmarck _Polymetis Apps_
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 1, 2019

Hi Robert,

This is still simple in the cloud version, however you will need a different app: In my biased opinion Cloud Workflows is the easiest option, as it supports Jira Expressions as workflow validators.

Jira Expressions are pretty similar to scripted validators, albeit with a different syntax. Your use-case would look like this:

issue.resolution.name != "Fixed"

Or, if you know the id for the Fixed resolution:

issue.resolution.id != 10001 // Replace 10001 with the id

And that's it!

Full disclosure: I work for Jodocus, the Vendor who created Cloud Workflows. Let me know if you need any help getting started, I'm happy to help!

Suggest an answer

Log in or Sign up to answer