I finally got the priority to update correctly in the cloned issues but now I am having trouble with the conditional parameters. I need the post function to evaluate the "Severity" field as Level 1, 2 or 3 and set the appropriate "Priority" in the cloned issue.
What happens is that no matter what the Severity is set to, 3 clones are created. How can I setup the post function to evaluate multiple conditions and do something based on the condition that matches?
I currently have 3 post functions setup. Can I combine these into one post function?
condition 1
issue.resolution?.name == 'Entered into Product Backlog'
cfValues['Severity'] = "Level 1/Critical"
action 1
issue.priorityId = '1'
condition 2
issue.resolution?.name == 'Entered into Product Backlog'
cfValues['Severity'] = "Level 2/Severe"
action 2
issue.priorityId = '3'
condition 3
issue.resolution?.name == 'Entered into Product Backlog'
cfValues['Severity'] = "Level 3/Important"
action 3
issue.priorityId = '4'