[PR #4304/4fbba968 backport][stable-4] jira: Use fields in comment to merge in additional data #4347
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a backport of PR #4304 as merged into main (4fbba96).
SUMMARY
The 'fields' parameter could be used to merge in any arbitrary data to a jira comment.
ISSUE TYPE
COMPONENT NAME
Enhancement of comment creation in community.general.jira.
ADDITIONAL INFORMATION
In jira issue creation, the 'fields' parameter is used to pass in any arbitrary data.
We adopted this to work also in jira comment creation.
In our jira service desk environment, we use it to set a property to mark the comment as 'internal'.
Look at the example I added.
(Some explanation that helped to find the correct property for this:
https://stackoverflow.com/questions/45031475/how-to-create-an-internal-comment-on-a-jira-issue-using-the-jira-cloud-rest-api )