Details
Description
Issue Summary
When sending a issue update webhook on a comment operations (create/edit/delete), the updated field for the issue is not up-to-date.
After the webhook is sent, we can see the updated is actually updated.
Note: for webhooks triggered from issue fields updated, the updated field has the correct value.
Steps to Reproduce
- Set up a webhook for when the issue is updated
- Enable com.atlassian.webhooks as DEBUG, to see the payload in the logs
- Add/edit/delete a comment in an issue
Expected Results
The updated field for the issue has the same date as the last updated comment.
Actual Results
The updated field for the issue has the value from before the comment was added/edited/deleted.
Workaround
Instead of using the updated field, please use the timestamp when:
- "webhookEvent": "jira:issue_updated"
AND - issue_event_type_name is like issue_comment*
It might not be a 100% match with the updated field, but it's a valid approximation.