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.
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.
Thanks for the response. Can you please suggest the way to work this out using JIRA script runner plugin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.