Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
13
-
Minor
-
175
-
-
Description
Summary
JMWE workflow validator on Assets objects does not work on Create issue or transition screens.
Steps to Reproduce
Create issue transition
- On the create transition add the Field Required Validator (JMWE app) on the Insight object custom field
- Try to create an issue with a valid object and try to perform the other transition with the same validator
OR - On the create transition add the following Jira expression to the custom JMWE script validator :
issue.customfield_10249[0].objectId == "234"
- Set the value of the Assets custom field to the Object that should pass the validation
- Press the create button on the issue
Transition screen
- Add Assets custom field to transition screen
- Associate the screen with a workflow transition
- Set the JMWE validator to fail validation if the Object id matches 234
- Create a new issue and set the Assets field to the Object 234, which should fail validation
- Trigger the transition that uses the screen configured earlier
- 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.