Set value of enum field in Workflow
Hello,
I have field Priority. It's an enum field and I would like to change the value in the Workflow. The code below is for testing where I try to change the value to Urgent in case of change Stage or Swimline. Below is also message in case of moving in the kanban table.
Can somebody help me with syntax?
Thank you
Please sign in to leave a comment.
Hello,
Since you are trying to use the Urgent value form a context is necessary to add it to the requirements section. For example:
If this does not help, would you please provide us with the console output from the add_watchers_to_issue/add_watchers rule?
Hello,
it doesn't work. There is still an exception in the Agile board.
Hello,
It seems you have a typo in addressing the Priority field. Please use `issue.fields.Priority` instead of `issue.field.Priority` and let us know if it helps.
The full list of Issue properties can be found here: https://www.jetbrains.com/help/youtrack/standalone/v1-Issue.html#properties
Hello,
it works! Thank you :o)
Thank you for the update, have a nice day!