I'm wondering if its possible to filter in JQL using something like serviceRequest31 or requestType31 as a value of the field request type as it is shown in the screenshot instead of its name. Like in custom fields where you can access them in smart values using issue.customfield_<<number>> or in JQL using cf[<<number>>].
I want to solve the problem of changing every rule whenever someone decides to change a request type name.
Community moderators have prevented the ability to post new answers.
There is an article written on how to write Request Types as JQL so it wouldn't break if names are changed. 🚩 Changes to request type names break JQL queries...
Hi @Zaloon
assuming I'm following I feel Kishan is right - was able to reproduce it on my Cloud instance.
Let's summarize: you are trying to have a JQL that survives a rename of a Request Type, correct?
So having a Request Type "IT Help" is renamed to "Super-Test IT Help" but the JQL is still standing.
According to what Kishan said and the JQL advanced search reference (https://support.atlassian.com/jira-service-management-cloud/docs/advanced-search-reference-jql-fields/#Advancedsearchingfieldsreference-CustomerRequestTypeCustomerRequestType)
you can use the key which is static (even when the Request Type is renamed in frontend).
That being said I was able to continue searching for it after the rename like:
"Request Type" = "demo/getithelp"
That representation is available from the REST API call Kishan looked up.
From what I read, tested and seen this is all Jira is providing for this as of now.
Please take your time to test it for your scenario. In case this was not what you are looking for please perhaps visualize with a screenshot.
Regards,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can find issues where the Request Type is new account in itsample project via below JQL - "Request Type" = "itsample/newaccount"
Below API will give you the relevant request types for an issue type
https://YOUR_HOSTNAME/rest/servicedesk/1/servicedesk/request/ISSUE_ID/request-types
eg:
"portalKey":"itsample","portalId":1,"key":"newaccount"
Then you can search via JQL as below
eg:
"Request Type" = "itsample/newaccount"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't want to retrieve this information from the instance, my problem is that I don't want to change names in every rule whenever a boss want to modify it for example. But thanks for your help anyways. What I need is to find how to filter in jql the request type using its key/id, but it seems that the name is the key/id at the same time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.