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

Guoxiong Li gli at openjdk.java.net
Mon Apr 11 17:41:54 UTC 2022


On Mon, 11 Apr 2022 13:59:47 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

>> The link `https://bugs.openjdk.java.net/rest/api/2/search?jql=project = JDK AND type = JEP` also returns this field. Such as `"customfield_10701":"419"`.
>
> Ok, I see the field name. I don't know how you are supposed to query for it, but it doesn't seem to have to do with permissions. You need to figure out the right way to perform the query.

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/

-------------

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


More information about the skara-dev mailing list