Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically assign a subtask to user when the parent ticket is labeled with a specific tag

Lakshmi CH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 13, 2023

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.

label1.PNGlabel2.PNG

1 answer

1 accepted

1 vote
Answer accepted
Kseniia Trushnikova
Community Champion
July 13, 2023

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?

Lakshmi CH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 13, 2023

Hi @Kseniia Trushnikova

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!

label3.PNG

Suggest an answer

Log in or Sign up to answer