We have a simple script that updates the Organizations field using a WEB HTTP POST to the API from ScriptRunner.
Looking for a way to prevent this update from firing Listeners.
Can do this when updating custom fields, but the Organizations field does not seem to be updateable the same way.
def PayLoad = ["fields": ["customfield_10110": [OrganizationID]]]
OrganizationsUpdate.put(
path: '/rest/api/2/issue/' + issue.key,
contentType: ContentType.JSON,
body: PayLoad
)
Updating Organization trigger an event that is catched by the listener.
Is it should be possible to filter event trigger from the UI or RESt API if you are using a specific user for the REST API then in the listener filter on the user who trigger the event.
It seems to be possible from the javadoc.
Function getUser()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.