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,463,250
Community Members
 
Community Events
176
Community Groups

Not able to set people field through automation in next-gen project

Hi,

the setting is a next-gen Jira Service Management project where I created a field of type "People" and set it onto "Customer request form" (tested in Description fields and Context fields also).

As soon as I want to update it through automation it is not offered as an option.

 

grafik.png

The field is called "Close User" and all of the intention is to set the person doing the transition into this field by:

 

grafik.png

TIA! Birgit

3 answers

1 accepted

0 votes
Answer accepted

Hi @bschmi I played with it a little and I found out the only way it works is to switch to advanced mode (click "More options") and put this to the Additional fields field:

{
"fields": {
"customfield_10053": [ { "id": "{{initiator.accountId}}" } ]
}
}

YOu need to replace 10053 with your custom field's ID. You can get information about your custom fields using REST API

Danish M Atlassian Team Jun 04, 2021

@Martin Bayer _MoroSystems_ s_r_o__ 

I have a similar scenario wherein I have the same custom field (of type people) in parent and subtask. I do not see the option for this field in the drop-down and will have to use the Advanced fields. I want to copy the value for this custom field from parent to child. i have tried the following:

 

{
"fields": {
"customfield_10200": {{issue.customfield_10200.accountId}}
}
}
{
"update": {
"customfield_10200": {{issue.parent.fields.customfield_10200}}
}
}

 

every time, I'm getting Error while parsing additional fields. Not valid JSON.

I can confirm there is a problem with setting a "People" field in this project type. The conditions do not work either. e.g. setting a condition for when this field type is "not empty" will never work. Seems to be a bug, and it remains unfixed a year later.

0 votes

Hi bschmi and welcome,

Can the action you are trying to automate  be done manually? I mean, is the field you are trying to set using the automation, editable at time point of the workflow by the actor you selected to execute the rule? I believe the field need to be editable or at least (not sure about this) being in the transition screen displayed during that status change.

 

Regards

Suggest an answer

Log in or Sign up to answer