I am trying to implement a post function that will set the value of a custom select list field if the resolution is not set to 1 of 3 values.
So far I have selected the custom field I want to modify: { value: "N/A" }
I have the conditional execution condition as
{{ (not issue.resolution.name == "Done") and (not issue.resolution.name == "Fixed") and (not issue.resolution.name == "Requirements Change") }}
But testing them within the creation of the post function against a test ticket that I know the resolution is set to Done, it returns false.
Can anyone help me figure out what I'm doing wrong on this?
@Lori Milam isn't that the expected behavior? you wanted to set the values if the resolution is NOT set to Done, Fixed, and Requirements Change and your issue's resolution is set to Done. Hence, your issue doesn't meet the condition and the post-function will not run. The post-function should run for any other resolutions.
Oh my gosh, you're right. I meant to put my issue is set to Duplicate not Done. And it returns false. This should return true I believe.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.