A customer discovered that duplicate items were sometimes being created in Jira Align after they reinstated a work item from the canceled objects bin.
In the customer's scenario, they configured the Canceled State in the Jira connector configuration to point to the "Deleted" status in Jira.
The use case here is that the customer did not want to hard delete Jira Align issues whenever they transitioned them to deleted in Jira. The behavior works as expected whenever they delete the item from Jira in that the Jira Align issue is moved to the canceled objects bin. However, when they transition the Jira issue from Deleted to something else, not only does the Jira Align item get restored from the Canceled Objects bin, Jira Align will sometimes end up creating a duplicate work item. This does not happen every single time, which leads us to believe it might be a race condition of some sort.
1) Configure a Jira connector to sync with Jira.
2) Navigate Administration -> Jira Setup -> State Mapping
3) In the canceled state ID box, enter the ID for the DELETED state from Jira.
4) Do not configure a deleted state Delete Item Status box
5) Save the changes.
6) From Jira, transition an issue to the deleted state.
7) The Jira Align Work Item transitions to the Canceled objects bin (which is expected)
8) From Jira, transition the ticket from Deleted back to another state.
- The affected, corresponding Jira Align issue is removed from the Canceled Items bin back to its respective work item grid (this part actually works)
- No duplicates should be created
- In addition to moving the Jira Align work item out of the Canceled objects bin, the connector ends up creating a duplicate Jira Align work item.
- When this occurs, it appears that the duplicate Jira Align work item is created first, then the existing Jira Align work item is reinstated.
Here are some log entries from a customer system:
The customer restored the work item via Jira here:
- Here are the Jira Align Audit log entries that demonstrate what happened on the Jira Align end.
- At 3:12 the connector creates a duplicate of Feature 1181, with an id of 1182