Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,735
Community Members
 
Community Events
168
Community Groups

Require Comment based on Resolution Value

Edited

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

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events