Adding a user to a custom field (user field) using JIRA API

Tom Dangot
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 7, 2024

Hey, i've got an automation that creates a jira issue using python. One of my custom fields is user field. I've tried multiple options but none of them seems to be working an actually add a user to this field.

I've tried: 

"customfield_10492": {"name":"tom.dangot"}

"customfield_10492": {"value":"tom.dangot"}

"customfield_10492": {"name":"tom dangot"}

"customfield_10492": {"name":"my account id"}

"customfield_10492": {"value":"my account id"}

"customfield_10492": {"value":"[~accountid:my account id]"}



None of them worked, would appreciate your help

1 answer

1 accepted

0 votes
Answer accepted
David Foote
Contributor
August 8, 2024

The format is like this:

 

{
"fields": {
"customfield_10003": [{
"accountId": "444444-2ccc-4bbb-8888-8888888888"
}]
}
}
Tom Dangot
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 26, 2024

thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events