Send a notification to the assignee of a task (inside an epic) when the previous task is set to done

Thierry PELERIN
Contributor
November 21, 2024

Hi community, i need your help :) 

 

Inside an automation (JiraCloud), i want to send a notification to the assignee of a task when the previous one is set to done.

I started to use "transitionned" trigger (on the task set to DONE) but then i don't know how to find the next task in order to inform the assignee that he can start his job.

 

Can you help me please to find out the correct solution in an automation ?

 

Many thanks in advance,

Thierry.

 

1 answer

1 accepted

2 votes
Answer accepted
Manon Soubies-Camy
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 21, 2024

Hi @Thierry PELERIN,

Nice use case! I would personally transition the next issue to another status rather than notifying the assignee - it's easier for reporting, and also useful if the next issue is unassigned. For example, I'd transition the issue from Backlog to To do.

Below are the sample issues I used:

context.png

If I correctly understood your need, you want to notify the assignee of KB-45 once KB-43 moves to Done. Here's the automation rule to make it work:

rule-details.png

The "next issue" is actually the issue that is ranked after the current one, so here are the JQL queries to find and use it:

  • Lookup issues: parent = {{triggerIssue.parent.key}} AND resolution = unresolved ORDER BY rank ASC
  • For: key = {{lookupIssues.first.key}}

The same logic applies if you'd rather have it working with epics or stories.

Hope this helps!

- Manon

Thierry PELERIN
Contributor
November 21, 2024

Hi, thank you so much Manon. I 'll try this !!!! 

Looks Really nice .

Like Manon Soubies-Camy likes this

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