Forums

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

Splitting e.g. 10 attachments in a parent ticket into 10 subtasks with 1 attachment each

Karen Kelly
Contributor
June 7, 2024

I have a parent ticket with 10 attachments on and after approving the images,

1. I want to click 'Approved' triggering an automation to split these images into 10 sub-task tickets with 1 of the images on each.

2. Then delete the attachments from the parent ticket.

 

I managed to create 10 tickets using an automation that counts the attachment.size, but then it seems like all the attachments come through to the subtasks every time (so 10 sub-tasks with 10 images each) instead of 10 with 1 each?

 

I see there is an option to look for first and last attachments e.g. {{attachment.first.size}} but not e.e. {{attachment.(x).size}}

 

Screenshot 2024-06-07 at 11.03.55 AM.png

 

My Smart Value section looks like this:

Screenshot 2024-06-07 at 11.05.00 AM.png

1 answer

0 votes
Keagan Robson
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!
February 19, 2025

Did you have success with this?

I am looking to do something similar, wanting to allocate select attachments to a new issue and believe this can be done with script runner but haven't used it before.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events