Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Require Comment based on Resolution Value

Brian Taylor 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

Suggest an answer

Log in or Sign up to answer
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 Leaders.
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