Forums

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

Jira Automation - change the parent a task when a certain condition is met.

Robin Van Noorwege February 12, 2025

Hi all,

I'm trying to configure the following automation in Jira:

- If a task is created with a certain word in the summary → move it to a specific parent (+ send an email)

We are pretty new to Jira and had this automation in our previous software.
Third party programs create 'tasks' in our Jira project, and currently we manually move it to the correct parent.

Since these tasks all contain specific keywords, we feel like this could be automated pretty easily, but looking through the automations I'm unable to figure out how to change the value of the parent.

Would very much appreciate the help, or just know if it's not possible.

Thanks!

1 answer

1 vote
Bill Sheboy
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.
February 12, 2025

Hi @Robin Van Noorwege -- Welcome to the Atlassian Community!

For a question like this, context is important for the community to help.  Please post the following:

  • what type of project is this (e.g., company-managed, team-managed, etc.), 
  • an image of your complete automation rule in a single image for continuity,
  • images of any relevant actions / conditions / branches,
  • an image of the audit log details showing the rule execution, and
  • explain what is not working as expected and why you believe that to be the case.

Until we see those...

With the Edit Issue action, you may select the Parent field and set it to specific issue, and then use the Send Email action to send the notification.

Kind regards,
Bill

Robin Van Noorwege February 12, 2025

Hi Bill,

Thank you for your reply.

I have reverted the flow back to the basics, which is currently this:

SCR-20250213-ieix.png

What I don't understand is how I can target a specific a parent here?

SCR-20250213-ieqv.png

I have used the 'send email' action in other flows and understand this, so just leaving it out atm.

The Project Type is: Jira - Business project.

Bill Sheboy
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.
February 13, 2025

Thanks for those rule images, and...

When using the Issue Created trigger, I recommend always adding the Re-fetch Issue action immediately after it.  That trigger can fire so quickly that some data may not be available to the rule yet, causing weird symptoms and rule errors.  The re-fetch will slow the rule down a bit, reloading the data before proceeding.

 

Next, there are two ways to set the Parent to a specific issue: smart values and JSON.  Let's do the first one using a Created Variable.

  • trigger: issue created
  • action: re-fetch issue
  • condition: Summary contains "CHANGE USER"
  • action: create variable
    • name: varParentKey
    • value: your key, such as ABC-123
  • action: edit issue, setting the Parent to {{varParentKey}}
    • It is not obvious from the UX that a smart value may be directly typed into the Parent field
    • Type in the smart value, and it will appear below the field
    • When it does, select it to use for the edit

 

Please try that and let me know what happens.  Thanks!

 

Robin Van Noorwege February 14, 2025

Hi Bill,

 

I implemented the automation, but it seems it stops at the create variable part.

SCR-20250214-kekz.png

The flow I created:

SCR-20250214-kgnb.png

Variable:

SCR-20250214-kfqr.png

Edit:

SCR-20250214-kfry.png

I tried removing the re-fetch part, but it doesn't seem to have an impact.

Any idea? 

Thanks,

Bill Sheboy
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.
February 14, 2025

Please expand all the sections in the audit log details and repost the image.  Is suspect Summary did not exactly match "CHANGE USER" (including the case).

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events