RFR: SKARA-1096: New command and label for JEPs, similar to CSR [v3]

Guoxiong Li gli at openjdk.java.net
Mon Apr 11 17:45:36 UTC 2022

On Mon, 11 Apr 2022 17:37:44 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

>> The previous link `https://bugs.openjdk.java.net/rest/api/2/search?jql=project = JDK AND customfield_10701 = 11` has two errors.
>> 1. We should use the display name to query instead of the internal name. So the `customfield_10701` need to be changed to `JEP Number`.
>> 2. We can't query text field by using the operator `=`. We need to use the operator `~`.
>> So the link should be `https://bugs.openjdk.java.net/rest/api/2/search?jql=project = JDK AND "JEP Number" ~ "11"`
>> Related documentation:
>> [1] https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-search/#api-rest-api-2-search-post
>> [2] https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-operators/
> I tried to query in the webUI and then convert to advanced query. That gives me:
> https://bugs.openjdk.java.net/issues/?jql=project%20%3D%20JDK%20AND%20issuetype%20%3D%20JEP%20AND%20%22JEP%20Number%22%20~%20%2211%22
> Trying that with the rest api seems to work too:
> https://bugs.openjdk.java.net/rest/api/2/search?jql=project=JDK%20AND%20%22JEP%20Number%22~11

@erikj79 we tried the same thing at the same time and get the same result. So the result should be reliable.


PR: https://git.openjdk.java.net/skara/pull/1297

More information about the skara-dev mailing list