Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-12479

JMWE workflow validator on Assets (formerly Insight) objects does not work with on workflow transitions

    XMLWordPrintable

Details

    • 13
    • Minor
    • 177
    • Hide

      Hi Team πŸ‘‹ ,

      Thank you for bringing this bug to our attention.

      We have added this bug to our backlog, however, due to other roadmap items and work capacity, we are unable to provide an ETA on this bug.

      We will continue to monitor the impact and will communicate an update as soon as we are able to schedule this work.

      Thank you again for providing valuable feedback to our team!

      Mohamed Hassan | JSM Assets Product Team

      Show
      Hi Team πŸ‘‹ , Thank you for bringing this bug to our attention. We have added this bug to our backlog, however, due to other roadmap items and work capacity, we are unable to provide an ETA on this bug. We will continue to monitor the impact and will communicate an update as soon as we are able to schedule this work. Thank you again for providing valuable feedback to our team! Mohamed Hassan | JSM Assets Product Team

    Description

      Summary

      JMWE workflow validator on Assets objects does not work on Create issue or transition screens.

      Steps to Reproduce

      Create issue transition

      1. On the create transition add the Field Required Validator (JMWE app) on the Insight object custom field
      2. Try to create an issue with a valid object and try to perform the other transition with the same validator
        OR
      3. On the create transition add the following Jira expression to the custom JMWE script validator :
        issue.customfield_10249[0].objectId == "234"
        
      4. Set the value of the Assets custom field to the Object that should pass the validation
      5. Press the create button on the issue

      Transition screen

      1. Add Assets custom field to transition screen
      2. Associate the screen with a workflow transition
      3. Set the JMWE validator to fail validation if the Object id matches 234
      4. Create a new issue and set the Assets field to the Object 234, which should fail validation
      5. Trigger the transition that uses the screen configured earlier
      6. Change the value of the Assets custom field during the transition to a different Object, ie with id 456

      Expected Results

      The validators work fine in both the scenarios on Create transition as well as the rest of the transitions in the workflow

      Actual Results

      The validators do not work fine with the Create transition or during the transition. The validator will continue to throw an error indicating either a field has not been set (Create issue) or the value is incorrect (transition). This occurs because the Jira expression within the validator is unable to retrieve the current value set and fall back to retrieving the value set in the database.

      Workaround

      Try to use the Jira validators with Insight custom field on the Create transition.

      Attachments

        Issue Links

          Activity

            People

              90325da67d46 Mohamed Hassan
              skahol Swati Kahol
              Votes:
              92 Vote for this issue
              Watchers:
              59 Start watching this issue

              Dates

                Created:
                Updated: