Uploaded image for project: 'Jira Cloud (including JIRA Core)'
  1. Jira Cloud (including JIRA Core)
  2. JRACLOUD-67548

Changing issue via post-function/workflow transition prevents search from working

    XMLWordPrintable

    Details

      Description

      Summary

      If we use the Update Issue Custom Field post-function in JIRA to set a custom field value, JIRA will actually only find the issue if we search for its old value, ignoring this new value set.

      This issue also occurs whenever a custom field is updated upon a workflow transition screen. As an example, if a custom field has no value and is updated during a transition, searching for the new value will not return the expected issue. This does not include the issue creation screen.

      Steps to Reproduce

      In Post-Function In Workflow Transition
      1. Create a custom field (only tested with single line text), say 'Test Field'
      2. Add a project and add that a post-function to a transition setting the value of field to 'Text2'
      3. Create a ticket in the project and set its custom field value to 'Text1'
      4. Search for "Test Field" = 'Text1' and "Test Field" = 'Text2'
      5. Transition ticket using the transition that sets the field (field value must be changed to 'Text'2')
      6. Do again search for "Test Field" = 'Text1' and "Test Field" = 'Text2'
      1. Create a custom field
      2. Add it to a screen
      3. Associate this screen with a workflow transition
      4. Create an issue without populating this field
      5. Transition issue and populate the field
      6. Query for the new field value

      Expected Results

      The ticket is only found in "Test Field" = 'Text1' in first search, before setting the field, and only found in "Test Field" = 'Text2' after it.

      Actual Results

      The ticket is found in "Test Field" = 'Text1' in both cases, even after setting the field to 'Text2'.

      Notes

      This does not happen if we set the field by editing the issue.

      Workaround:

      • Editing custom field value manually makes it searchable once again
      • Setting custom field on issue creation screen (if applicable) also works.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cfuller crf
              Reporter:
              jsilveira Jaime S
              Votes:
              3 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: