Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-34763

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

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • None
    • None
    • None
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? 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: