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: 

Require Comment based on Resolution Value

Brian Taylor
Contributor
March 27, 2018

I am trying to require a comment based on the value of the Resolution Field - I found in the Scriptrunner documentation a simple validator to resolve this action - however it does not work - trying to see if there is some sort of update that I am not aware to solve this issue 

issue.resolutionObject?.name == "Failed QA" || transientVars["comment"]

Simple Script Bug.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Thanos Batagiannis _Adaptavist_
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 Champions.
May 9, 2018

Hey Brian,

Try something like 

// if resolution is done then there should be a comment
issue.resolution.name == "Done" ? transientVars.comment : true

In that case, is safe to ignore the errors you may get in the UI, are because of the Static Type Checking

TAGS
AUG Leaders

Atlassian Community Events