The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

4 votes
Oliver Siebenmarck _Polymetis Apps_
Community Champion
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!