Forums

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

when the specific user is added in the field, selected users also to be added to that field

Lakshmi CH
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.
December 19, 2022

Hi Team,

We recently acquired one organization. As part of this, we migrated  their jira (server) to our jira instance (server), they had "Automation for JIRA" addon, but its not available to server version, so I haven't installed on our instance. They used below automation only for all migrated projects. Is this below requirement feasible with JMWE or scrip runner addons ?

The requirement is,

When the user (ex:  "itteccjirauser" ) is added to a "cc" field in any project, select employees are also added to the cc field so that they are notified. 

Please find the attached screenshot for your reference.

image_2022-12-19_171559197.png

1 answer

0 votes
Florian Bonniec
Community Champion
December 19, 2022

Hi @Lakshmi CH 

You can download automation for jira app below:

https://marketplace.atlassian.com/apps/1215460/automation-for-jira/version-history

You can also do it using scriptrunner by updating the user picker field and add the users. The example below should help you do create the require script.

https://library.adaptavist.com/entity/change-the-value-of-a-custom-field-in-a-post-function

https://library.adaptavist.com/entity/update-the-value-of-custom-fields-through-the-script-console

 

Regards

Lakshmi CH
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.
December 19, 2022

Thank you for quick reply @Florian Bonniec . We have only this automation. I don't want to install addon for only this.

When the user (ex:  "itteccjirauser" ) is added to a "cc" field in any project, select employees are also added to the cc field so that they are notified. 

Florian Bonniec
Community Champion
December 20, 2022

Hi,

 

As suggested below you should be able to do it using Scriptrunner base on the 2 links I provided to you.

 

You can create à listener on issue updated even then check if the update is related to the field. If it's the case, check the value added and update cc field accordingly.I recommend to not trigger any event when updating the cc with the script. It will avoid having the listener to be triggered again.

 

Regards 

Suggest an answer

Log in or Sign up to answer