PowerScript Cloud - Silent Updates in Jira Cloud with PowerScripts
INTERNAL ONLY
Description
Product: PowerScripts for Jira Cloud
Applies to: Jira Cloud users looking to suppress notifications during issue updates
Issue Description
A customer wants to perform silent updates in Jira Cloud using PowerScripts—specifically, to make changes to issues without triggering notification emails to users.
✅ Workaround
While PowerScripts does not offer a built-in “silent update” toggle, you can achieve this effect using the following routines:
1. unsubscribeNotifications
Temporarily unsubscribes a user from receiving notifications related to a specific issue or request type.
2. subscribeNotifications
Re-subscribes the user back to receive notifications once the silent update is complete.
Use Cases :
a) For example, if they want to update the summary of a work item, but don’t want to the assignee of the work items get bother with that notification, but still want them to receive other notifications, then user can do the following:
string key = "TEST-123";
boolean flag;
unsubscribeNotifications(key, key.assignee);
%k%.summary = "NEW Summary";
subscribeNotifications(key, key.assignee);
b) In case they want to silent for more users, then they’ll need to add each user at a time
string key = "TEST-123";
boolean flag;
unsubscribeNotifications(key, key.assignee);
unsubscribeNotifications(key, "192391239123sd8asda"); //Account Id User X
unsubscribeNotifications(key, "19239123asdad8asda"); //Account Id User Y
%k%.summary = "NEW Summary";
subscribeNotifications(key, key.assignee);
subscribeNotifications(key, "192391239123sd8asda"); //Account Id User X
subscribeNotifications(key, "19239123asdad8asda"); //Account Id User Y
If they don’t want them to receive any more notifications for this work item, then just only use unsubscribeNotifications
ℹ️ Notes
This method currently applies on a per-user and per-issue basis.
These routines are only available in PowerScripts for Jira Cloud.
Additional Step :
If the workaround provided above does not fully meet the customer’s needs, there is an additional feature that can help make PowerScripts updates silent. This setting is available under the Dark Features section in the Power Scripts configuration.
Go to Jira Admin → Apps → Power Scripts *left panel menu)→ Power Apps Config → Advanced → Dark Features → Disable notifications