Forums

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

Automation : send Teams message when a linked issue is closed

Pilotage VSCT
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2025

I have a project A issue with multiples projects B,C,D linked issues (I don't have access to the others projects automation part)

 

When one linked issue is closed i want to send a Teams message telling me that X linked issue linked to "Project A issue" is now closed.

To bypass the fact that i can't directly create an automation on the others projects i tried this :

Trigger : Field value changed

  • Field : Links

Advanced compare condition :

  • {{issue.issuelinks.outwardIssue.fields.status.id}} 
  • is equal to 
  • 6  <- it's the "closed" id.

Then send a Teams

 

But it doesn't work. When i check the audit log of the automate there is nothing in it. It's like it doesn't even match the condition for it to start

 

Thanks for your help !

2 answers

2 accepted

0 votes
Answer accepted
Michael Yaroshefsky - Visor for Jira
Atlassian Partner
June 24, 2025

Hey @Pilotage VSCT here's an idea - create a scheduled rule to check the status of linked issues and send an automated Teams message if it discovers a newly closed linked issue.

1. Set the Trigger to Scheduled and choose a sensible timeframe (e.g. every hour)
2. Set the Action using JQL:project = A AND issueLinkType is not EMPTY
3. Set the Condition as: If {{issue.status.id}} equals 6(Closed)
4. Action: Send Teams message: 

"Linked issue {{issue.key}} ({{issue.summary}}) for Project A issue {{triggerIssue.key}} is now closed."

Hope that's a good solution for you - if not let us know, happy to help you fine tune it.

 

 

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.
June 24, 2025

Hi @Pilotage VSCT -- Welcome to the Atlassian Community!

Short answer: the rule you describe is triggered on issue linking but you seem to want to trigger it on a status transition instead...and have the rule use multiple project scope to cover all of the issues involved.

 

If that does not help, context is important for the community to help.  Please post the following:

  • 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
  • explain what is not working as expected and why you believe that to be the case

 

Kind regards,
Bill

Pilotage VSCT
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 24, 2025

Is there any available trigger to match what i want (a linked issue transition) without a multipe project scope ?

 

Ex : Everytime the field {{issue.issuelinks.outwardIssue.fields.status.id}} change check if the value is set to 6. If yes, send a message.

 

I understand that's the easiest solution would be to create an automate in the projects B,C,D like this :
2223.png

But i can't do it like this for now...

 

Thanks for you help @Bill Sheboy  !

 

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.
June 24, 2025

The rule scope determines what is "visible", and so to detect this when the transition happens, you would need either:

  • a multiple project (or global) scope rule, or
  • a rule in each of those projects.

And the rule you show in each project could only detect the links through the smart values but it cannot branch to them for a single-project scoped rule.

Like Pilotage VSCT likes this

Suggest an answer

Log in or Sign up to answer