Problem summary

      Changes in Epic link field does not trigger listener for "Issue Updated" event. As an example, Webhook will not fire when it is configured for "Issue Updated" and the only change for the issue is on the Epic link.

      Steps to Reproduce:

      1. Create a listener for "Issue Updated"
      2. Update just Epic Link field,

      Actual Result:

      Listener is not triggered.

      Expected Result:

      Listener is triggered.

      Notes

      This is the only field that has the problem. All other fields (standard, custom, Agile, etc.) do not exhibit this problem.

      See https://answers.atlassian.com/questions/22645060/sil-listener-script-not-being-called-on-issue-update

            [JSWSERVER-12299] Change in Epic Link field does not trigger listener

            For anyone coming here looking for a way to do updates to Epics when an Epic Link is changed on a ticket, you can start with this guidance: https://codebarrel.atlassian.net/browse/AUT-1264?focusedCommentId=107261

            Basically, you have to use Issue Updated (or Multiple Issue Events) as the trigger, and then look at the special changelog smart value to see if it was an Epic Link change.

            Some how-to: https://community.atlassian.com/t5/Jira-Software-questions/Jira-Automation-How-to-identify-what-Epic-a-Story-was-linked-to/qaq-p/1924599

            Matt C. Wilson added a comment - For anyone coming here looking for a way to do updates to Epics when an Epic Link is changed on a ticket, you can start with this guidance: https://codebarrel.atlassian.net/browse/AUT-1264?focusedCommentId=107261 Basically, you have to use Issue Updated (or Multiple Issue Events) as the trigger, and then look at the special changelog smart value to see if it was an Epic Link change. Some how-to: https://community.atlassian.com/t5/Jira-Software-questions/Jira-Automation-How-to-identify-what-Epic-a-Story-was-linked-to/qaq-p/1924599

            When will it be fixed?

            Andrei Kuntsevich added a comment - When will it be fixed?

            Tim Malone added a comment - - edited

            Thanks for the workaround idea @Konrad Garus.

            @tom.shoval here's a quick Groovy script I've put together that can be built on to use as a custom script listener. Use the IssueLinkCreatedEvent. Note that the link type ID may need tweaking if your 'Epic-Story Link' link type isn't at ID 10500.

            import com.atlassian.jira.component.ComponentAccessor
            import com.atlassian.jira.issue.IssueManager
            
            // Get data for this issue link
            //
            // 4 properties are available here:
            // - issueLink.id = the unique ID of this link
            // - issueLink.issueLinkType.id = ID of the link type
            // - issueLink.destinationId = ID of issue being added to epic
            // - issueLink.sourceId = ID of epic being added to
            def issueLink = event.getIssueLink()
            
            // Quit now if this isn't an 'Epic-Story Link' link type (ID 10500)
            if ( issueLink.issueLinkType.id != 10500 ) {
              log.error("Not an epic link")
              return
            }
            
            // Get full issue data
            def manager = ComponentAccessor.getComponent(IssueManager)
            def issue = manager.getIssueObject(issueLink.destinationId)
            def epic = manager.getIssueObject(issueLink.sourceId)
            
            // You can then use eg. issue.key, issue.summary, epic.key, etc.
            

            From here you could then do something like send alerts to Slack as described here: https://library.adaptavist.com/entity/send-custom-notification-to-slack

            Tim Malone added a comment - - edited Thanks for the workaround idea @Konrad Garus. @tom.shoval here's a quick Groovy script I've put together that can be built on to use as a custom script listener. Use the IssueLinkCreatedEvent . Note that the link type ID may need tweaking if your 'Epic-Story Link' link type isn't at ID 10500. import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.IssueManager // Get data for this issue link // // 4 properties are available here: // - issueLink.id = the unique ID of this link // - issueLink.issueLinkType.id = ID of the link type // - issueLink.destinationId = ID of issue being added to epic // - issueLink.sourceId = ID of epic being added to def issueLink = event.getIssueLink() // Quit now if this isn 't an ' Epic-Story Link' link type (ID 10500) if ( issueLink.issueLinkType.id != 10500 ) { log.error( "Not an epic link" ) return } // Get full issue data def manager = ComponentAccessor.getComponent(IssueManager) def issue = manager.getIssueObject(issueLink.destinationId) def epic = manager.getIssueObject(issueLink.sourceId) // You can then use eg. issue.key, issue.summary, epic.key, etc. From here you could then do something like send alerts to Slack as described here: https://library.adaptavist.com/entity/send-custom-notification-to-slack

            tom.shoval added a comment -

            Hi,

            Can anyone share an implementation example / print screen of the workaround using the webhooks? not sure i understand how i can achieve it using this...

            "As kind of a workaround, it does fire IssueLinkCreatedEvent and IssueLinkDeletedEvent with hidden link type named "Epic-Story Link"."

             

            Thanks!!

            Tom

            tom.shoval added a comment - Hi, Can anyone share an implementation example / print screen of the workaround using the webhooks? not sure i understand how i can achieve it using this... "As kind of a workaround, it does fire IssueLinkCreatedEvent and IssueLinkDeletedEvent with hidden link type named "Epic-Story Link"."   Thanks!! Tom

            Would be great to see a fix! We use Jira project automation and have some teams that put programs in a single Jira project and manage them with team epics. We need to fire off automation rules when something is switched from team to team. (such as move all the sub-tasks as well)

            Rob Laddish added a comment - Would be great to see a fix! We use Jira project automation and have some teams that put programs in a single Jira project and manage them with team epics. We need to fire off automation rules when something is switched from team to team. (such as move all the sub-tasks as well)

            As kind of a workaround, it does fire IssueLinkCreatedEvent and IssueLinkDeletedEvent with hidden link type named "Epic-Story Link".

            Konrad Garus added a comment - As kind of a workaround, it does fire IssueLinkCreatedEvent and IssueLinkDeletedEvent with hidden link type named "Epic-Story Link".

            Fix please

            Thibault Clavier added a comment - Fix please

            Any news on this problem please?

            Dam - iDalko added a comment - Any news on this problem please?

             Any fix to this problem?

            Sugandha Singh added a comment -  Any fix to this problem?

            This bug is also affecting some of our clients. We are looking forward to this bugfix. 

            Dusan

            Dusan Spaic added a comment - This bug is also affecting some of our clients. We are looking forward to this bugfix.  Dusan

            Ran Lavi added a comment -

            We are Atlassian Partners in the middle a very large implementation at some customer (5,000 user tier data center), and we hit this bug that disrupts our customization. We need a fix.

            Ran Lavi added a comment - We are Atlassian Partners in the middle a very large implementation at some customer (5,000 user tier data center), and we hit this bug that disrupts our customization. We need a fix.

            +1 for fixing this and another +1 for doing it sooner than "some day". I would understand this being on the long-term backlog if there were issues with hundreds or thousands of votes ahead of it (the described reason for this being pushed down), but looking at the link provided above that is definitely not the case. This issue is a bug in foundational functionality, which means that anything downstream (like notifications, integrations and third-party plugins, etc.) are blocked from doing what they are otherwise supposed to do because of this.

            This fix is deployed in Cloud already, which means you've figured it out to at least some extent. Please either change the reason for the delay or move it up in priority.

            Haddon Fisher added a comment - +1 for fixing this and another +1 for doing it sooner than "some day". I would understand this being on the long-term backlog if there were issues with hundreds or thousands of votes ahead of it (the described reason for this being pushed down), but looking at the link provided above that is definitely not the case. This issue is a bug in foundational functionality, which means that anything downstream (like notifications, integrations and third-party plugins, etc.) are blocked from doing what they are otherwise supposed to do because of this. This fix is deployed in Cloud already, which means you've figured it out to at least some extent. Please either change the reason for the delay or move it up in priority.

            this is a bug and a lack in the product, it should be fixed quickly. 

            event are triggered for all others fields and not this one? why?

            we all wait since 23/Jul/2015 5:20 PM, more than 3 years from now... 

            Dam - iDalko added a comment - this is a bug and a lack in the product, it should be fixed quickly.  event are triggered for all others fields and not this one? why? we all wait since 23/Jul/2015 5:20 PM, more than 3 years from now... 

            Gali F added a comment -

            Is there any update on this bug ? 

            Gali F added a comment - Is there any update on this bug ? 

            any news or updates please guys ? 

            its a bit annoying for few of my customers... 

            Dam - iDalko added a comment - any news or updates please guys ?  its a bit annoying for few of my customers... 

             Any updates on it? 

            Artem Grotskyi added a comment -  Any updates on it? 

            Samidha Parab added a comment - - edited

            This bug was reported in July 2015 and it is going to be almost  3 years  now without any resolution at all. Can this be at least assigned to someone? This issue has been resolved in JIRA's cloud version it seems, then why can't Jira push the fix to the enterprise version? Please provide update on this issue asap since this is causing extra overhead work for us.

            Samidha Parab added a comment - - edited This bug was reported in July 2015 and it is going to be almost  3 years  now without any resolution at all. Can this be at least assigned to someone? This issue has been resolved in JIRA's cloud version it seems, then why can't Jira push the fix to the enterprise version? Please provide update on this issue asap since this is causing extra overhead work for us.

            Seenivasan Alagarsamy added a comment - - edited

            is anybody there to update this task about what is going on? Just a quick update would be appreciated. All we need to know whether it will be fixed in any  upcoming versions or it wont be fixed soon enough.

             

             

            Seenivasan Alagarsamy added a comment - - edited is anybody there to update this task about what is going on? Just a quick update would be appreciated. All we need to know whether it will be fixed in any  upcoming versions or it wont be fixed soon enough.    

            Jason G added a comment -

            any new updates

             

            Jason G added a comment - any new updates  

            Stil relevant in v7.9.0 

            Any update on this?

            Deleted Account (Inactive) added a comment - Stil relevant in v7.9.0  Any update on this?

            This issue is still relevant on v7.5.2. I spent some time tracking this one down .

            Damir Kadyrov added a comment - This issue is still relevant on v7.5.2. I spent some time tracking this one down .

            is there a workaround for this issue ? when this will be fixed ?

            Seenivasan Alagarsamy added a comment - is there a workaround for this issue ? when this will be fixed ?

            dave.allen added a comment -

            This is an issue every day.  This really hurts and causes miscommunication.

            dave.allen added a comment - This is an issue every day.  This really hurts and causes miscommunication.

            Please fix it!

            Andrey TEST Kiyanovsky added a comment - Please fix it!

            scythy added a comment - - edited

            +1 on this issue, we need this fixed, it also affects v7.1.10.

            scythy added a comment - - edited +1 on this issue, we need this fixed, it also affects v7.1.10.

            Please reopen this issue as it is still an issue.

            James Claridge added a comment - Please reopen this issue as it is still an issue.

            Please do not close this issue without fixing it. There are many times I need to take action on an item when the Epic link (and other links) change. To not have an event fire impedes my ability to efficiently do my job.

            Vanessa Strazdas added a comment - Please do not close this issue without fixing it. There are many times I need to take action on an item when the Epic link (and other links) change. To not have an event fire impedes my ability to efficiently do my job.

            Many thanks for raising this bug. Since there has not been any customer activity on this issue in over a year, we’re closing it as Timed out.
            If you feel that the bug is still relevant to your needs, please leave a comment and we'll reassess it.

            Kind regards,
            Dong Hoang
            JIRA Software

            Hoang Dong (Inactive) added a comment - Many thanks for raising this bug. Since there has not been any customer activity on this issue in over a year, we’re closing it as Timed out. If you feel that the bug is still relevant to your needs, please leave a comment and we'll reassess it. Kind regards, Dong Hoang JIRA Software

              drauf Daniel Rauf
              c31317ed3989 Chris Kast
              Affected customers:
              102 This affects my team
              Watchers:
              86 Start watching this issue

                Created:
                Updated:
                Resolved: