Forums

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

HAPI - Update an Assets Object without Triggering Listeners.

David Harkins
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.
October 24, 2024

Is it possible to update an Assets Object using HAPI without trigger Asset Listeners?

setEventDispatchOption(EventDispatchOption.DO_NOT_DISPATCH)

This works on a HAPI issue update, but not a HAPI Assets Update?

1 answer

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
January 10, 2025 edited

Hi @David Harkins

Have you tried using the approach below with ScriptRunner's HAPI, i.e.:-

issue.update {
//Field to update
}

for example:-

issue.update {
setDescription('Testing 123')
setCustomFieldValue('Sample Text', 'Abc 123')
}

Using the approach above, you do not need to trigger the Event Dispatcher.

I hope this helps to answer your question. :)

Thank you and Kind regards,

Ram

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
Atlassian, Team '25 Europe, Atlassian conference, AI-powered teamwork, Atlassian events, keynote speakers, Barcelona tech conference, Atlassian Williams Racing, Carlos Sainz, Jenson Button, Mike Cannon-Brookes, Anu Bharadwaj, Atlassian Rovo

Atlassian Williams Racing is coming to Team '25 Europe 🏎️

Discover the teamwork and precision behind success on and off the track. See how this high-performing team makes the impossible possible. Be one of the first 100 customers to register for a chance to win 2 tickets to an Atlassian Williams 2026 race.

Register now
AUG Leaders

Atlassian Community Events