Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to copy a comment with media attachment from one jira instance to another?

karthik raj January 2, 2024

I am integrating the Jira service desk and Jira software via automation and API. when a comment is made on the Jira service desk my automation automatically makes a comment in Jira software, but only if its a text. the following is my payload and I am using smart value to get the last issue comment. How to include media type if its an image. Please let me know if there is any possible way forward. 


{
"body": {
"content": [
{
"content": [
{
"text": "{{issue.comments.last.author.displayName}} [automation - JSM] = {{issue.comments.last.body}}",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}}


 

1 answer

0 votes
Rebekka Heilmann _viadee_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 2, 2024

Is your JSM on a different site than your Jira Software?

karthik raj January 2, 2024

Yes @Rebekka Heilmann _viadee_ both are on different sites. If it had been the same site, i could have tried the clone issue in automation, which supports copying attachments 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events