Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-34763

Need a easier way to include non-null values in jira

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Need a easier way to include non-null values in jira

      I tried raising my concern with my colleague (Sthanunathan for JSP-164449) , however my idea did not get conveyed correctly.

      Given that Jira is used by functional tester who do not have to be masters in SQL I suggest that when JSQL gets a query like

      select * from jiraissue where FixedVersion!= 'Version2.4.0';

      -where FixedVersion can take in null values - jira should internally convert it to

      select * from jiraissue where isNull(FixedVersion,-1) != 'Version2.4.0';

      I tried this

      key in (RETT-2236, RETT-2595) AND isnull(fixversion,-1) != RETT-Backlog

      And got the below exception:

      Error in the JQL Query: 'isnull' is a reserved JQL word. You must surround it in quotation marks to use it in a query. (line 1, character 431)

      I have a work around, as suggested by you,
      key in (RETT-2236, RETT-2595) AND (fixversion != RETT-Backlog OR fixVersion is EMPTY)

      but the problem is that the user does not have the schema to always know whether its a null field OR not.

      Hence what I request is:
      If there is a query like this from the front end:
      select * from jiraissue where FixedVersion!= 'Version2.4.0';

      -where FixedVersion can take in null values - always convert it internally to

      select * from jiraissue where isNull(FixedVersion,-1) != 'Version2.4.0';

              Unassigned Unassigned
              fa0257deeb6e Sarath Nagabhirava
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: