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,360,105
Community Members
 
Community Events
168
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? :)

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

An unofficial way to monitor a JSM mail handler for errors

...eturns true if any content is returned for the webResponse.body.data.first s...

668 views 3 20
Read article

Atlassian Community Events