Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation: Copy Form to Subtask as PDF / Download Attachment, Re-Upload it

Rebekka Heilmann _viadee_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 1, 2024

Context: For certain Requests we create Subtasks based on a fieldvalue in the submitted Form. We copy the Form from the parent to the Subtask so noone needs to switch between issues to have all the info.
However, by copying the form, we overwrite issue fields that have linked fields in the form - that is a problem for us.

What we want to achieve: Have all the context info contained in the Parent issue's form available in the Subtask


Idea: Download the Form as PDF and attach the PDF in the Subtasks

Problem: I don't know how to reupload the PDF to an issue per Automation.

What I got so far: 

I have the Webrequest for the PDF Download  (https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-issue/#api-issue-issueidorkey-form-formid-format-pdf-get) and got the Webrequest for the Upload (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post)

What I need is to figure out how to call the second Webrequest with the results from the first one.

Any ideas?

1 answer

0 votes
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 2, 2024

Automation doesn't support Attachments. As previously discussed here:

Automation doesn't have a filesystem. So there's no place for it to "keep" your PDF, so then there's also no place where you could specify where the PDF "lives" to upload it.

I think the only way to accomplish what you want would be to have some external server/service running somewhere that you could trigger from Automation that uses the APIs you found to download the PDF from the parent and then attach it to the subtasks.

But it's not presently possible using Automation alone.

Suggest an answer

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

Atlassian Community Events