Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,307
Community Members
 
Community Events
184
Community Groups

Automation : set custom field with assignee

Hi all,

I created a custom field called "Developer(s)" (type of field: User Picker (multiple user)) and I would like to automate an action when I make a transition to a particular state.

I would like to trigger an action to *set* to this custom field the name of the assignee. Is this possible? Ideally, even better, I would like to *add* to this custom field the name of the assignee if there is already another name (but it may be too much to ask...).

I tried many things like what is proposed in the following thread, but I cannot get it to work, maybe this does not apply to custom fields? 

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Set-custom-user-field-from-assignee-using-smart-values-in/qaq-p/1877340

For example:

{
    "fields": {
        "engineer": { "id": "{{assignee.accountId}}" }
    }
}

or:

{
    "update": {
        "Developer(s)": [{
            "set": {{initiator.accountId.asJsonObject("id")}}
        }]
    }
}

Any ideas? :)

1 answer

0 votes
Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 15, 2023

Hi @Jérôme Coupé 

Just in case you still need this answered - it is possible without JSON!

For the Action Edit Issue, set the parameters as follows...

  • Field = <Custom Field>
    • Select the 3-dots icon next to the value field, and select COPY
    • Press the button which replaces the value field, and set the values to...
      • Issue to copy value from = Trigger Issue
      • Field to copy value from = Assignee
      • Add to existing values = Checked

Let us know if this works for you!

Ste

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events