It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation for Jira - timestamp a ticket when a linked issue is transitioned Edited

Hi Everyone!

 

i need help writing rules to automate the following use case.


Senario:

2 jira projects:

1 customer project

1 team project

 

Ticket A from the customer project is linked as the parent to tickets  X, Y, and Z from the “team project”.

 

I have automation in place so that when X, Y, and Z all transition through their workflow, they automatically transition Customer Ticket A.

 

What I need help with is:

X, Y, Z will all be started on different dates.

When the last of these tickets transitions, I would like to automatically set a custom due date (date+x) on Customer Ticket A. This is so I can provide a SLA date to our customer.

Any advice would be greatly appreciated!

 

3 answers

1 accepted

0 votes
Answer accepted

Thanks for the help everyone!


You helped me solve it :) Here's what I ended up building:

 

Screen Shot 2020-01-29 at 1.00.46 PM.png

0 votes
Veera Atlassian Team Jan 18, 2020

@Jack Arndt 

Since you already have a rule setup for transitioning Customer Ticket A when all the linked tickets in Team project are transitioned, you may add new 'Edit issue' action item to set the Due Date.

You may refer to Advanced field editing, and Working with dates for more details.

  1. Create a rule that is triggered when issues are transitioned
  2. Filter the statuses based on what you need. i.e., transition parent when all sub-tasks are closed.
  3. Filter the issues you want the rule to work for, i.e., for sub-tasks only.
  4. Create a branch for parent issue
  5. then use a related issue condition and for the related issue, you can have a condition 'all match specified JQL' and the JQL will be status in (done/closed whatever you use).
  6. then use advanced compare condition to validate if the parent issue is in the correct status to transition from
  7. then transition the issue to your desired status
  8. and add an edit rule to use on your custom field with the variable {{now}}. You'll have to create the custom field in Jira and define it as a date type field.

 

Here's an example of the above rule that can be modified to your needs:

image.png

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you