Hi there,
we need to set comment to mandatory when the field "Flagged" is marked. Tried this based on the current groovy documentation, but this is not working as the variable is not declared...
cfValues['Flagged'] || transientVars["comment"]
image2017-1-11 15:41:2.png
Maybe not a big thing, but how to solve?
Best regards,
Hans-Hermann
Hi Jamie,
thanks for the update, but it seems that it´s not working. I could transition an issue with field "Flagged" being marked but added no comment, JIRA accepted it and updated the status. My expectation was to being blocked until a comment was added.
Did i configure something wrong?
Thanks & best regards,
Hans-Hermann
Well you are saying "Flagged" OR "with a comment". Do you want to say if it's flagged it must have a comment? Do you want the comment to be required when the issue is first flagged, or every transition thereafter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The transitions should be blocked in case the field "Flagged" is marked during this transition and no comment was added (as explanation why the flag has been set).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
cfValues is only available in Simple Scripted Validator IIRC. That said there seems to be a bug in the type-checking. It's marked as an error but works fine: https://productsupport.adaptavist.com/browse/SRJIRA-2101
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.