I want to know if the following automation is possible.
Cheers
Bharath
Hello @J S S S Bharath
Yes, that is possible.
Have you tried to create this rule? If so, and it is not working as expected, please share screen images to show us your entire rule and tell us what you expect versus what is actually happening.
Hello @J S S S Bharath ,
Good day! Welcome to Atlassian Community :)
Yes, it is possible to achieve your use case via Automation. You can refer to the following steps.
Step1: Add Trigger: Field value changed,
Fields to monitor for changes: Labels
Change type: Value Added
For: Edit work item
Step 2: Add Condition: Workitem fields condition
Field: Labels
Condition: Equals
Value: Add your label ( in your case target_label_x )
This step is to make sure the automation rule only runs when this specific label is added.
Step 3: Add Action: Create workitem
Space: Same space
Issue type: Sub-task
Parent work item: Trigger work item
Add the required information in summary and description.
This step will make sure that subtask is created under same work item where label was added
Save the rule and enable it :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Shalini Pradhan
How does the condition in Step 2 ensure that the specified label was the one that was added? What about the scenario where the specified label was already present and a different label addition triggers the rule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello @Trudy Claspill ,
Good day! In Jira, for a single workitem, you cant add a same label twice. For example if you have already added label XYZ, when you search for that label again, it wont show up
So this condition in step 2 will ensure that this automation rule is run, when a specific label is added. If a different label is added, it wont run and in audit logs, it will show that the condition didnt match
Its a tried and tested rule and works perfectly on my site :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've used the rule labels based on words it finds in the JIRA.
Once the label is added to a ticket, you can have a rule that then, will create a sub-task from that label.
(I would recommend having two separate rules, although I'm sure you could do it all in one rule. I just haven't found adding a lot of stuff to one rule to be successful).
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.