Search

Download Attachments

Last Updated: Feb 14, 2022

Articles

Use this function to download the attachments in the JIRA ticket.

Syntax

Download Attachments (token, url, username, issue_key, location)

Parameters

Input Parameter Name Description
token JIRA API token
url JIRA URL
username JIRA username
issue_key Key of the Issue
location Path to download the files

To know more about token, click here.

Returns

Return Value Description
Output
  • On Success returns 1 | STATUS | MESSAGE for each attachment separated by | |
  • On Failure returns 0 | Error Message

Sample

Download Attachments (https: //yourusername.atlassian.net, yourname@gmail.com, EX-30, ABCDCEF, C:\Invoice)

  • Uses the token ABCDEF to connect to JIRA with the url https: //yourusername.atlassian.net with the username yourname@gmail.com, downloads the attachments in the issue EX-30 to the path C:\Invoice.
    Returns 1 | <file name> downloaded successfully on downloading the file.

To view all the JIRA functions, click here.

Did you find what you were looking for?