Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Setting User field using jira API

I have been able to find various questions similar to this one, but none of them are solving this problem.

So I have this custom field

 "customfield_10039": {

              "required": false,

              "schema": {

                "type": "user",

                "custom": "com.atlassian.jira.plugin.system.customfieldtypes:userpicker",

                "customId": 10039

              },

              "name": "user",

              "key": "customfield_10039",

              "autoCompleteUrl": "https://integrationtr.atlassian.net/rest/api/1.0/users/picker?fieldName=customfield_10039&fieldConfigId=10140&projectId=10001&showAvatar=true&query=",

              "hasDefaultValue": false,

              "operations": [

                "set"

              ]

            },

So as you can see this allows one to set the user, now I set the user using this:

{"fields":{"customfield_10039" : {"name":"admin"}}}

I have tried so many combinations for name, I have tried using email id, display name, even name by concatenating first name, second name. In each one I get the same error:

{"errorMessages":[],"errors":{"customfield_10039":"user is required."}}

0 answers

Suggest an answer

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

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

340 views 1 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you