It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why linking an issue is not triggering an event Listener?

 

1 answer

1 vote

Why, exactly, I don't know.

but you are right, we've run into this a few times.  Issue linking doesn't fire any events at all.  I'm guessing it's because Atlassian never thought they'd use linking to trigger any activity. 

@Will Davis was the last person I know who managed to work around it, but I don't remember his trick well enough to explain it (and I wouldn't want to be credited for his work).

An open issue since 2005: https://jira.atlassian.com/browse/JRA-8505

Low hanging fruit in my opinion but mine hardly matters smile

Very true, I could have used it a few times too.  I voted on it ages ago.

Thanks for your replies. When i give comment while linking the issue, it triggers the issue_commented event, this is good for me, but the problem is i wanted to make the Comment required field, is there a way to do that. Any other solution for this problem will help me a lot. Thanks in advance.

As @Nic Brough says, I came up against this recently and was able to come up with a workaround, although it is not universally suitable. Using ScriptRunner for JIRA, we created a service that ran every minute. This service used a JQL search to identify all issues that had been updated in the last minute, and then looked up the relevant changelogs to see if those changes related to links being created or destroyed. All issues where the changes involved links then had the appropriate update made to them.

There was one large drawback to this approach - the "listener" did not act instantaneously, because the service only ran every minute - after a change was made involving a link, the update would happen up to 60 seconds afterwards. This was fine in the context of what we were trying to achieve, but not useful if an instant response to issue linking is required.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

101 views 0 10
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