Issue isn't searchable by the field updated via API POST to the transitions endpoint

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Summary

      When searching the field of an issue that was transitioned and edited through a POST REST API request, it will return nothing.

      If you search the field of an issue that was edited through the UI OR a PUT REST API request, the search will show that issue.

      See the examples below.

      When runnig the POST REST API request

      curl -D- -u USERHERE -X POST -H "Content-Type: application/json" -d '{"update": {"comment": [{"add":{ "body": "test" }} ] },"transition":{ "id":"21" },"fields":{"customfield_10046":"4.4.4.4","resolution":{"name":"Done"}} }' https://yourinstance.atlassian.net/rest/api/2/issue/BS-8/transitions

      Then, searching with the JQL query

      project = BS and "Root Cause Analysis" ~ "4.4.4.4"

      It won't show any results.

      However, if you use a PUT request OR edit the issue through the UI, the search will show the issue.

      Environment

      JIRA v1001.0.0-SNAPSHOT

      Steps to Reproduce

      1. create a POST request to transition an issue and update a field
      2. search for the field using "~" and the value you used in the API request

      Expected Results

      • It should show the issue when searching for it.

      Workaround

      1. Edit the issue through the UI
      2. Edit the issue through PUT request
      3. Edit the issue through PUT request then transition with POST

            Assignee:
            Unassigned
            Reporter:
            Gabriel Muller (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: