Triggering Slack notifications when issue moves projects

Hillary Petroski August 4, 2016

I'm looking to receive a notification in Slack when a JIRA issue moves from one project to another. Is there an easy way to do this? Do the projects need to have the same workflow scheme? 

1 answer

0 votes
Vladimir Horev _Raley_
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.
October 23, 2016

Hi Hillary,

You can achieve it with our add on Jirassimo

https://marketplace.atlassian.com/plugins/net.vacom.jirassimo/cloud/overview

 

With the following template (event issue_updated)

 

#foreach ($issue in $issues)
  #foreach ($item in $issue.lastchange.items)
    #if ($item.field == "project" and $item.fromString == "Source Project Name" and $item.toString ==    "TARGET_PROJECT_KEY")
        $issue.key was changed from $item.fromString to $item.toString
    #end
  #end
#end

 

Cheers,

Vladimir

Monica Farrell January 18, 2017

Vladimir, is there a way to set up this template so that you don't have to specify the source project? We use multiple projects and I only want to monitor tickets that have been moved into my project.

Vladimir Horev _Raley_
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.
January 18, 2017

@Monica Farrell Yes, absolutely. Just try the following:

  #if ($item.field == "project" and $item.fromString != "Source Project Name" and $item.toString ==    "TARGET_PROJECT_KEY")

Suggest an answer

Log in or Sign up to answer