Forums

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

Disabling email notifications for Scriptrunner Scheduled Scripts with HAPI

Stefan Brocanelli
Contributor
March 27, 2025

Is there any way to disable email notifications when updating issues by using scriptrunner and scheduled scripts? 

I am using HAPI so my update looks something like this:

 

Issues.getByKey(issueKey).update{
        setCustomFieldValue('Tidy Project Budget', projectPlannedTime)
        setCustomFieldValue('Tidy Project Time Used', projectUsedTime)
        setCustomFieldValue('Tidy Project Budget Percentage Used', percentageBudget)
        setCustomFieldValue('Tidy Status', tidyStatus)
        setCustomFieldValue('Tidy Verrechnungstyp', typeOfVerrechnung)
    }
I know i can do it on server with this code:

setEventDispatchOption(EventDispatchOption.DO_NOT_DISPATCH)
setSendEmail(false)

 

However this does not work on cloud version.

2 answers

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
March 28, 2025

Hi @Stefan Brocanelli

I can confirm that this is currently not doable on Jira Cloud.

A new feature request for this has been raised on this link.

Please upvote for this feature so it can be added in future releases.

Thank you and Kind regards,
Ram

0 votes
Murat Seven
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.
March 27, 2025

Hi @Stefan Brocanelli ,

Unfortunately, the methods you mentioned, such as 

setEventDispatchOption(EventDispatchOption.DO_NOT_DISPATCH) 
setSendEmail(false)

are not applicable in the Cloud environment.

But, you can consider the Automation rule. If applicable, you can create autmation rules that handle updates without trigger notification for users.

Best regards,

Murat Seven

Stefan Brocanelli
Contributor
March 28, 2025

I am aware, that is why I am asking about a workaround :) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events