-
Bug
-
Resolution: Fixed
-
Low
-
4.20.1
-
None
-
9
-
Severity 3 - Minor
-
4
-
Issue Summary
Approvers field keep the same value when changing the related group and using Insight custom field to select group.
This is reproducible on Data Center: yes
Steps to Reproduce
- Create an Insight schema and an object type which contains an attribute of type groups
- Create 2 objects in this object type and associate each of them to a different Jira group. Make sure that the 2 groups contains 2 different user.
- Create a JSM project.
- Create an Insight custom field and just select the schema previously created in it.
- Edit the workflow and add the approval configuration to a status (ex. Pending).
- In Approval configuration select Insight objects field and the Insight custom field .previously created, then select the attribute of type group.
- Create a transition that from the Pending status revert back to the previous status other than Decline (which is created when adding approval configuration).
- Edit the screen of the transition which lead to the Pending status and add the Insight custom field created in it.
- Create an issue in the JSM project and transition it to Pending. In the transition screen select 1 of the groups in the Insight custom field. Observe that the approvers field is populated with one Jira user (in that group).
- Do not approve the issue.
- Select the transition to revert to previous status. Observe that the approvers value is cleared in issue view.
- Transition again the issue to Pending. Fill the Insight custom field with a different group than before.
- Observe that the approvers field still contains the same user value of the previous selected group.
For more info about JSM approvers flow with Insight objects see: https://confluence.atlassian.com/servicemanagementserver/adding-approvers-from-insight-to-requests-in-jira-1082527784.html
Note: the issue persist if you have more transitions from the original status to another status than the one you have registered in approval configuration (Transition when approved and Transition when declined)
Expected Results
The approvers value should change accordingly to the group choosen in Insight custom field.
Actual Results
The approvers value retain the same value as before.
Workaround
When adding the approval configuration to a status also a Decline transition is automatically created. When using Decline instead of a custom created transition, the value of approvers is cleared correctly. Remove any other transitions than the one that exists for Transition when approved and Transition when declined, so nobody transitions to another status without approving or declining the issue.
- is related to
-
JSDSERVER-12730 Approvers from Assets customfield should be updated when Object is replaced
- Closed