Forums

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

JIRA ServiceDesk Api Assistance

JasonF
Contributor
April 19, 2018

Hey there, I'm trying to turn off queue counts, but its not clear to me what exactly (or how exactly) i'm supposed to be sending.  The below put is to turn them off globally:

 

PUT <contextpath>/rest/servicedeskapi/admin/queues/include-count - true/false body - 200 response (default true)

 There's a similar GET request that works to see the current status on a specific project, these are the results I see:

{"queueCount":{"includeQueueCount":true,"useCachedQueueCount":false},"_links":{"self":"https://jira/rest/servicedeskapi/admin/queues/HELP"}}

I've tried using that JSON that's returned and seeing the individual booleans, URL params, etc...  I'm not super familiar with the SD api, but how do I just set "include-count" to false as mentioned in the above?  Thanks!

1 answer

0 votes
delan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2018

Hi Jason,

To make the PUT request using cURL, try this command:

$ curl -i -X PUT -H 'X-ExperimentalApi: true' -H 'Content-Type: application/json' --data-binary false https://jira/rest/servicedeskapi/admin/queues/include-count

Replace the “false” with “true” to turn them back on, and replace “https://jira” with your Jira instance URL as required.

You’ll need to authenticate the request as described in our REST API documentation, and the X-ExperimentalApi header is there because this endpoint is experimental (might change in future versions of JSD).

You can use Postman instead of cURL if you prefer. Hope that helps!

Suggest an answer

Log in or Sign up to answer