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

Ethan Foulkes
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 2, 2015

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

1 vote
Andriy Zhdanov
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 7, 2015

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

0 votes
JamieA
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 11, 2015

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.

Ethan Foulkes
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 16, 2015

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

Ethan Foulkes
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, 2015

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!

JamieA
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 29, 2015

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

0 votes
Ethan Foulkes
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 8, 2015

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 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 8, 2015

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

0 votes
Ethan Foulkes
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 7, 2015

@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!

0 votes
Ethan Foulkes
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 5, 2015

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

 

0 votes
Pedro Cora
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 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

Ethan Foulkes
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 5, 2015

Thanks Pedro.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events