How do I comment issue in another project when issue is resolved?

I have issues in multiple projects that are linked by a custom URL field which will contain an identical URL.

I'd like to automatically add a comment to linked issues in Project 1 when an issue from Project 2 is Resolved. I'd also like the comment to include a link back to the Project 2 issue and the summary of that issue.

Can someone confirm this will be possible with Automation Plugin and if possible offer some guidance to get me started?

Thanks!

7 answers

Looks like you could achieve "comment replication" using Script Runner plugin. Please see

0 vote
Pedro Cora Atlassian Team Oct 02, 2015

Not possible with just the Automation Add-On.

The only idea that I could come up with is to make the automation trigger a special even that will call a webhook to add a comment on the other issue.

-- Pedro

Anybody out there interested in configuring this for me? Happy to pay a reasonable amount, I don't think it should be that difficult...

 

@Nic Brough [Adaptavist] @Jamie Echlin [Adaptavist],

Can you offer guidance on how to accomplish this? I'm not a programmer so this is a little overwhelming for me...

Any help greatly appreciated!

Hi Ethan,

I hope you are well.

Could I please ask for some further info on your question so that we can look to provide you with the correct solution.

  1. Could I ask if the URL field will always point to other JIRA Issues or if it would point to external systems.
  2. Could I ask for an example of what may be contained inside the custom URL field.

Many Thanks

Kristian

Hi Kristian,

Hope you've been well also!

The URL field always contains the TinyURL from a Confluence page that is related to issues in both projects. An example: https://thedock.camerican.com/x/MgCyBQ

FYI - I opened a ServiceDesk ticket for this also with Jaime. Don't want you to duplicate any efforts!

 

0 vote

Try this: https://gist.github.com/jechlin/106ca5ce42ea80fd9a4c

It's slightly more hassle than it should be because JQL does not support exact text matching.

There are a couple of things you need to configure in the script, see the comments in the code.

Thanks Jaime! I'm planning to carve out some time to see how this works soon =)

Hi Jaime, Had someone give me some help in understanding this and how to implement it so getting ready to dive in. Can you advise whether I should expect this to work in Jira 7 or if it would require tweaking? Thanks!

Hi Ethan, It should be fine. Areas of concern for jira 7 upgrades are listed here: https://scriptrunner.adaptavist.com/latest/jira/releases/release-4.1.4.html

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you