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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2025

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
AUG Leaders

Atlassian Community Events