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

Automation : set custom field with assignee

Jérôme Coupé August 24, 2022

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.
January 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

Steve Holland April 10, 2024

worked perfect for me.  and coincidentally, my custom field was also Developer(s) :) 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events