Hi Team,
I have specific requirements, such as assigning a ticket to a specific user when it is moved to a particular status based on the ticket label.
I successfully used the "Set field value (JMWE)" post function by adding it individually to the workflows of both parent and sub-task issue types.
My request here is, If the parent ticket has a specific label, then the subtask will be assigned to a user based on the label of the parent ticket, regardless of whether the subtask has that label or not.
When looking at the screenshots below, you will notice that I applied the label individually to both the parent and subtask workflows. If the ticket itself has the label or its Opportunity/Project ticket has the label, it applies.
Hello @Lakshmi CH,
To check if a parent issue contains the specific label, try to use this:
issue.parentObject.get("labels")?.any{it.label == "test_label"}
Does it help?
Great news! I've got it working. If the parent has a particular label, I could assign a subtask to a specific user. I really appreciate your quick response and helpful solution. Thank you!
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.