Forums

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

Would like to send an email after one of my several subtasks are marked done

Jerrod Van November 1, 2023

I have an automation that when helpdesk changes a request type to this automation it will create a bunch of sbutasks. 

 

When value changes for : customer request type

If" customer request type equials : end-user- on-boarding

Then create a new subtasks.. Then i have about 7 subtasks. 

What i am trying to do now is after one of those subtasks is marked " done" i want it to send information via email to a user. I have tried another if statement under the subtasks but it doesnt seem to work . 

1 answer

1 accepted

0 votes
Answer accepted
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.
November 1, 2023

Hi @Jerrod Van 

You probably do not want to do those in one rule, because the subtask will move to Done later...after some time.

Please try adding another automation rule, triggered on transition to Done and checking the issue type equals subtask, and then sending the email.

Kind regards,
Bill

Jerrod Van November 1, 2023

Is there a way to send the email with the details from the comment from the subtask to that user?

 

Also just to follow along with what you stated before, i tried creating a new automation 

When" issue transitioned 

From :open

To: Done

 

However not sure what you mean by checking the ssue type equilas the subtask.. Do i use a new condition for that ?

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.
November 1, 2023

Yes, that is correct.  The outline of your second rule would be:

  • trigger: issue transitioned to Done
  • condition: issue type equals Subtask
  • action: send email

I am unclear which comment information you want to send in the email.  The most recent comment would be:

{{issue.comment.last.body}}

Please look here to learn more about that smart value:

https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html

Jerrod Van November 1, 2023

So i have that set but i have 7 subtasks and i only want one of the subtasks to email a certain user when marked " done".. So i think i need another condition dont i?

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.
November 1, 2023

How do you know which one should generate the email?

If that can be determined from the issue fields, an additional condition will limit so only that one leads to the email.

Suggest an answer

Log in or Sign up to answer