Forums

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

Help Needed: Create Linked Work Items from CSV Attachment Using ScriptRunner

Alex Truner
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 14, 2025

Hello Community Folks,

I'm working on an automation use case and could use some guidance.

I have a scenario where a work item (e.g., a Jira issue) has a CSV file attached. Each row in the CSV represents data that should generate a new work item. My goal is to:

  1. Create a new work item for each row in the attached CSV file.

  2. Link each new item back to the original work item.

  3. Copy a field value (e.g., a keyword or tag) from the original item into the newly created items.

I'm attempting to implement this using ScriptRunner, but I haven’t found any clear examples or documentation on how to process a CSV file that’s attached to a work item.

Has anyone done something similar? I'd really appreciate:

  • A sample script to get started

  • Tips on accessing and parsing CSV attachments using ScriptRunner

  • Or even suggestions for alternate approaches (e.g., using Jira REST API, Automation for Jira, external integrations, etc.)

Thanks in advance for any help or pointers you can provide!

0 answers

Suggest an answer

Log in or Sign up to answer