Forums

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

JIRA Cloud - Add user to custom field (jira automation)

Martin Vašíček April 2, 2024

Hello, 

I have a problem with JIRA automation. 

I need to add user automatically in to Multiuser custom field (přihlížející) everytime issue is created but do not overwrite users who were already selected in Create issue. Simply add the user to the existing users in that field.

creating issue.png JA overwrite the user.png

I have easy rule in Jira Automation.
When issue is created -> edit issue -> set up custom field (přihlížející) to Martin Soukop.

I checked the internet for advise but didnt find anything that work :/
For example this is exactly what I need but that script didnt work for me when I edit it for my custom field... - https://community.atlassian.com/t5/Jira-Software-questions/JIRA-Automation-Add-Current-User-to-Custom-Field/qaq-p/1478453

1 answer

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Champion
April 2, 2024

Hello @Martin Vašíček 

Welcome to the Atlassian community.

The documentation provides an example of using advanced editing with JSON to add another user to a multiple user picker field without overwriting the values that are already there.

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-user-picker-custom-field

If the instructions are unclear or do not appear to work correctly in your rule, you will need to provide us with screen images that show your complete rule, the details of each step, and the output that is written in the rule execution Audit Log when the rule is run.

Martin Vašíček April 2, 2024

Thanks so much this is what I was looking for! 

result.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events