Jira Servicenow Integration , Bulk Import

mdshahvez11
Tera Contributor

Hello everyone,

I'm currently working on a bulk migration from Jira to ServiceNow.

While I'm able to fetch the data successfully, I'm encountering an issue with the comments.

For each Jira issue, I’ve created a separate subflow where I pass the Issue ID and fetch all related comments. This part works — I'm able to retrieve all comments from Jira.

However, when I try to update them into a string field in the staging table, only one comment (out of 4–5) gets stored.

I’ve attached screenshots of the subflow and execution logs for reference.

Any insights on why only one comment is being saved and how I can store all comments properly would be appreciated.



mdshahvez11_0-1749550362843.pngmdshahvez11_1-1749550366713.png

 

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@mdshahvez11 

are you expecting to iterate 4-5 times i.e. for each comment the loop should run?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 
yes for every comment I'm traversing over the data , and storing in a staging field.
but getting only 1 comment data out of all what i'm getting in flow.

@mdshahvez11 

are you trying to update the same record with the comments again and again?

If yes then it's basically getting overridden and hence all comments are not coming.

I will suggest to use flow variable and append it using For Each with those 4-5 comments

Then use Update Record only once to update the record with the value from flow variable

check this how it's done and enhance

AnkurBawiskar_0-1749555080216.gif

 

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 
Instead of adding all comments inside string type field or concatenation in the same.
can't we use something , so that it will keep all separately.

but I have tried using journal field to store the comments , but in that scenario I'm not able to dot walk on the comments actions outputs data pill , those are not accessible to me for type journal.

@mdshahvez11 

if it's a string type field then it will get overridden

did you try to append/concatenate as per what I mentioned and check if it worked?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader