Forums

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

ServiceDesk Java API for managing Queues

Felipe Carasso April 22, 2020

Greetings,

I'm trying to tap into the ServiceDesk Java API to allow the cloning of Queues from one project to another, but I'm unable to find a suitable API that will allow me to *create* a Queue.

FYI, I'm trying to do that through ScriptRunner. There must be a way, since ScriptRunner's Built-in script for cloning a project says it will clone the source project's queues.

Is there any official API for that? And if not, how does ScriptRunner do it so I can replicate?

Thank you,

Felipe

1 answer

0 votes
Patricia Francezi
Community Champion
April 22, 2020

@Felipe Carasso hello, 

I didnt find any "create"  queue from https://developer.atlassian.com/cloud/jira/service-desk/rest/#about

But, the main concept of queues in Jira Service Desk, its based on filters (JQL), created by project. Its a filter, listed in the project so the agent is able to find their work easly.

You can get the issues in some queue but not copying it to another project, as each project will have the queues based on the issues this project has.

Does it make sense?

Felipe Carasso April 22, 2020

The target is to replicate queue configuration between two or more SD projects, so it has to be a Queue, not just a filter.

Patricia Francezi
Community Champion
April 22, 2020

have you check this one?

 https://docs.atlassian.com/jira-servicedesk/4.8.1/

 

com.atlassian.servicedesk.api.queue has "create".

part of the building is JQL - that you might get from another project. 

Patricia Francezi
Community Champion
April 22, 2020

Now I saw you edited, and youre using Script Runner. ;)

Felipe Carasso April 24, 2020

Yes, that's correct. I was looking at the API for my version which is 4.5.0.

4.8.0 includes the required API.

If you'd add this info to your original answer, I'll mark it as accepted.

Thanks!

Like Patricia Francezi likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events