Forums

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

Update Custom Field - Request Type

Nick Glazer August 31, 2020

After reviewing - > https://confluence.atlassian.com/jirakb/how-to-set-the-request-type-when-creating-an-issue-using-jira-core-rest-api-in-cloud-974366000.html

 

I am trying to update a custom field request type: 

"customFieldId_14210": {
"id": "Account Assistance"
}

 

I keep getting 405 method not allowed when I try to POST. I just don't know what I am doing wrong here.

 

POST -> https://OurCompany.jira.com/rest/api/2/issue/<issueID>

-----------------------------

I've tried:

-----------------------------

{
"fields": {
"customFieldId_14210": {
"id": "Account Assistance"
}
}
}

-----------------------------

As well as:

-----------------------------

{
"customFieldId_14210" : {"id":"Account Assistance"}
}

 

1 answer

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
August 31, 2020

@Nick Glazer , I checked the page you shared. It looks to me like request should be

{
"customFieldId_14210" : "Account Assistance"
}

in case "Accoutn Assistance" is really ID of the request type option.

You can try to get request type id using REST API request

  • endpoint: /rest/servicedeskapi/requesttype 
  • method: GET
  • header: X-ExperimentalApi: opt-in
Nick Glazer September 2, 2020

So I see the id for the field is "id": "33" based on the endpoint listed above. Not sure what to do with that info though. 

 

As far as sending in the body, still get a 405 not allowed when using: 

{
"customFieldId_14210" : "Account Assistance"
} 
Nick Glazer September 2, 2020
{"_expands":["field"],"id":"33","_links":{"self":"https://tennant.jira.com/rest/servicedeskapi/servicedesk/7/requesttype/33"},"name":"Account Assistance"

Per the ->   endpoint: /rest/servicedeskapi/requesttype 

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 2, 2020

Try to use ID pls

{
"customFieldId_14210" : 33
} 

Suggest an answer

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

Atlassian Community Events