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:
Create a new work item for each row in the attached CSV file.
Link each new item back to the original work item.
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!