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.
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.