Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automation: copy comments from trigger issue, is it possible?

Rosana Casilli
Contributor
May 9, 2022

Good afternoon all!

 

I have this question, an user is asking to create a rule to create a new issue based on data from trigger issue in a different project. 

The problem I have is that information that he needs includes comments. He wants to copy all comments (or internal notes only if it's possible) to this new issue in project AA

How can I copy the comments? maybe including a json? how should it be?

 

thanks in advance,

Ro

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2017

That IS the "real file".  There's no other copies stored.

If you want to read an attachment directly off the file system you read the file under the attachments directory (I'd strongly recommend going through JIRA's API, and there's no way you should ever write here)

formulardev01
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2017

But, i can't read the file.. in attachments directory..

the file's name maybe DB ID .. where is my attachment file???

 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2017

Your file is the one in the attachment directory.  It's been renamed to fit with JIRA's internal naming scheme

This is why you should not be reading it this way - you're over-complicating what you're doing.  JIRA's storage is not intended for you to access directly.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events