Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

updating a Issue via advantage editing or curl

Christoph Schulz April 18, 2024

Hello,

 

iam trying my best to update a "Team"/customfield but it seems i got stuck. i've found the id after entering it manualy, checking my issue. Is the field not ready for automation or iam doing something wrong ? when i click edit task it wont show up "Team".

 

The idea was to inform a Team about a new Task.

 

first i've tried advantage editing with


{
"customfield_10001": {
"id": "7de7cb79-2b59-4fd1-a3f7-6e99e2873180",
"name": "TestTeam",
"value": "option1"
}
}

 

next try was sending a curl request


curl -X PUT \ 'https://NAME.atlassian.net/rest/api/2/issue/OO-12' \ -H 'Authorization: Bearer TOKENNAME' \ -H 'Content-Type: application/json' \ -d '{"fields": {"customfield_10001": {"backgroundcolor": "#FF0000","name": "TestTeam"}}}'

 

 

1 answer

0 votes
Trudy Claspill
Community Champion
April 18, 2024

Hello @Christoph Schulz 

What is the type of the custom field you are trying to edit? Is it a text field, a selection/dropdown field that allows only a single selection or multiple selections, a User Picker field, ...?

When you say "advantage" editing, do you mean the advanced JSON option available in the Edit Issue action in an Automation Rule?

Screenshot 2024-04-18 at 1.50.36 PM.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events