Forums

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

Is issue update event triggered when the issue view screen is refreshed?

Apoorva Sharma
Contributor
January 23, 2024

We have a custom in-house plugin through which we are showing a screen between the transitions from one workflow state to another. The screen asks user to modify the values of several fields but if in case, the fields are not filled, it throws an error pop-up.

When error message is displayed then the fields should not update but we have observed that the 'Labels' field is getting updated when the user tries to refresh the screen.

It is happening exclusively for this field.

If anyone has any suggestions or ideas as to why this might be happening, then please let us know.

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.
January 24, 2024

Hi Apoorva,

The "issue updated" event is only thrown when an issue's data is changed.  That's any create, edit, or transition.

"Look at an issue" does not change the issue, so there's no update event thrown.  

You must have refreshed the screen at a time when another user was adding labels (via edit or transition), or you have an automation, script, or listener that is reacting to something and splatting out a label for some reason.

There is one exception to "view means view", but it's pretty horrid to set it up and no-one in their right mind would do it.  If you create a Scripted field (Scriptrunner can do this, but there may be other apps that could do it too), then the script can run when you view an issue, so if you put something in the script that makes a change to the issue, you could trigger it every time the issue is viewed.  Although that will, by default, fire the issue updated event unless you code even more carefully to avoid it!  If you have an admin that has created a script like this though, I would strongly recommend removing their admin rights until they've had some better training on how to use a computer...

Suggest an answer

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

Atlassian Community Events