Forums

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

Download the attachment ,process the file and attach the results back automation in JIRA

srishti singh March 26, 2018

I want to automate the process where if an issue is created in JIRA, the attached file in the issue gets downloaded and the commands in the file gets executed on the machine and the result of the execution is again attached/posted back into the ticket. Please help me with the possible approach.

1 answer

1 vote
Chung Park Chan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2018

The process involved is not trivial as it requires application and server level access. On Jira side of things, you could retrieve the attachment metadata via REST API (api/2/attachment) which links you to the physical file on the file system. Then you will need server level access to read, execute and capture the results of the commands in the file. Lastly, use REST API (api/2/issue/{issueIdOrKey}/attachments) to add the attachment back to the ticket. 

srishti singh March 27, 2018

Thanks for the response. Can you please suggest the way to work this out using JIRA script runner plugin.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events