Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to restruct Jira event update getting triggered whenever a rest update happens to Jira issue.

Shilpa Sanil
Contributor
July 7, 2021

I am using rest api to update changes from SNOW to Jira as well as have written a plugin in jira which listens for event change in jira to send the update back to SNOW.

When an update call happens to jira using rest api for the same update Jira update event is getting triggered? Why is it happening so?

How can i restrict in plugin code so that same update i got using rest ap,i to be send back to snow?

Any quick solutions would be really appreciated.

 

Thanks

Shilpa

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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.
July 7, 2021

The REST API is behaving as it should - an event is fired when an issue is being changed.

There's no way to stop this, because you shouldn't - the events are needed as part of the process of changing issues.

Shilpa Sanil
Contributor
July 7, 2021

Hi Nic,

 

If so how can i restrict the same change that came from Service Now not to go back as an update to them?

Nic Brough -Adaptavist-
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.
July 7, 2021

You'll need to look at the connector that is sending something over to Service Now - if it is event triggered, it needs to be coded to understand that changes coming from Service Now should not be played back.

Shilpa Sanil
Contributor
July 7, 2021

Thanks Nic will try to check using the user who updates through rest api & then not to sent the updates back if its that user.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.0.10
TAGS
AUG Leaders

Atlassian Community Events