In some cases, your counterparty would like to see who changed the content of a custom field. The following snippets show:
- how to access the JIRA authentication context which contains that specific information.
- Store it in a Custom Keys.
- Extract it from the custom key on the other side, and add the information as a comment.
currentUser can be null because
dataFilter is also called (in certain cases) asynchronously to provide responses.
Use the customKey: if the messageForCutomer is provided, add a comment prefixed with the full name of the currentUser. Use 'development' if no user is provided.