I'm automating JQL query generation for searching any group of Issues based on any field an Issue could have.
I generate the JQL string using the EQUALS ('=') operator. The text fields don't support that operator. For those I have to use CONTAINS ('~'). But the problem is that I don't know the name of the issue fields that support one or other.
Using the JIRA REST API, how can I check or know which issue fields support which operators in an automated way?
How can I know wich issue fields are text fields or not?
PD: I know that I could generate manually an array that contained the issue fields that are text fields. But I want It to be fully automatic. Using the JIRA REST API .
There's also another solution I finally came with:
The operator CONTAINS('~') is allowed for fields of type string while the operator EQUALS('=') is allowed in anything else that is not a string.
You can check if a parameter is a string type or not, accessing the '/rest/api/2/field' resource.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, that was totally what I needed.
https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-jql-autocompletedata-get
Is there any way to get the same info using the Jirashell or the jira-python client?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad it worked. Not sure if these libraries have been updated with the autocompletedata resource.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.