Using the python library to send a JQL string like this to jira fails with a 400 permissions error, despite the field existing, and the service account having full administrative permissions.
Custom fields in that format are used in smartvalues for automation, when creating a JQL string you should use the field name, e.g.:
project = Foo AND status = 'BAR' AND MyFieldName = Regular
or if your field name is a text field you should use ~ instead of =
project = Foo AND status = 'BAR' AND MyFieldName ~ Regular
I would suggest testing the JQL in a Jira filter and then just copying that into your python client
In python you should just be able to mention the name of the field as it is named in Jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Custom fields are absolutely supported in JQL. 200 error indicates a bad request, even for admin accounts. It may be due to field value mismatch, so I'd suggest checking the exact value using the Jira UI. First test the JQL in Jira UI.
The customfield_12998 may not be available in the context for the project Foo.
Last but not least, check the encoding while sending via Python.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.