servicedesk rest api The request type you are trying to view does not exist

I have Java code that used to work and is no longer working but not sure where the problem is and no errors are reported in the JIRA system log.

When trying to create a request the ServiceDesk REST API has started returning 400 Bad Request with this response body:

{"errorMessage":"The request type you are trying to view does not exist.","i18nErrorMessage":{"i18nKey":"sd.customerview.error.requestTypeNotFound","parameters":[]}}

When I check JIRA the issue has been created, it has used the correct customer request type as the correct issue type is created and all the hidden fields from the request type have the correct values on the issue. However when viewing the issue the "Service Desk request" section indicates no match!

image2016-6-7 15:13:5.png

The authenticated user is a member of jira-users group and both the serviceDeskId and request type id are correct.

3 answers

Did you solve this - I have the same problem

 

Thanks

Chris

Hi Chris,

I can't find notes.

What version of ServiceDesk are you using? We are currently on 3.2.5

Our setup is as follows:

  1. API user created in Internal user directory on JIRA otherwise had auth problems if in AD
  2. API user added to jira-users group

 

Our setup is the same.

My code is working fine with another service desk in the same JIRA instance - but I can't see any difference in the setup of the two. So for now we are fine. I'd still like to get to the bottom of it so if you do come across your notes I'd appreciate knowing what you did to solve the problem.

Chris

Hi @Chris Dunne [GetJirified.com]

Yes we did I just can't recall right now what the solution was. I will go and check notes and revert back with solution.

Thanks - I appreciate your help.

 I'm seeing the same issue.

 

2018-02-02 09:40:39,321 PsmmqAsyncExecutors-job:thread-27 WARN userXXX 580x10227x1 6uj76r 172.16.221.80 /secure/CommentAssignIssue.jspa [c.a.s.p.a.modules.ruleif.CustomerVisibleStatusChangeIfCondition] The request type you are trying to view does not exist.

I was able to fix this for Service Desk by building out the Request Types and associating them with a Service Desk issue type. The problem I have now is that you can not do this for sub-tasks. The tool will not allow sub-tasks to be associated to an Request Type.

jira/servicedesk/admin to get to the Request Types

Seeing the same issue.  I've had to delete and re-create the Request Type so it was available in the REST API.  I think we need to report this as a bug.  I'm just not sure of the exact steps to reproduce it so that the Request Type goes missing.

Resolved this issue.  Discovered that the default limit for the Service Desk api is 50 and when we specified a greater number it works:

https://xxxx/rest/servicedeskapi/servicedesk/{servicedeskid}/requesttype?limit=1000&start=0

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Mar 09, 2018 in Jira Service Desk

E.L. Fridge's take on education, Jira Service Desk, and creative Jira use cases

...word of mouth, so by 2016, we were working with several other entities on campus to implement Jira Service Desk . The Atlassian motto of “for every team” has really come true for us in this case. We...

968 views 2 14
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you