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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.