Add Attachment
UiPath.Jira.Activities.AddAttachment
The Add Attachment activity uses the JIra API to upload and attach a file (FilePath) to a specific Issue (Issue Key).
After uploading the file, the activity outputs the Attachment (Attachment). This can be used as an input variable in subsequent activities (e.g., Attachment in Download Attachment or Delete Attachment in conditional logic).
How it works
The following steps are example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.
- Complete the Setup steps.
- Add the Jira Scope activity to your project.
- Add the Add Attachment activity inside the Jira Scope activity.
- Create and enter a
Stringand aFilePathvariable for the Input properties. - Create and enter a
Stringand aIssue Keyvariable for the Input properties. - Create and enter a
Attachmentand aAttachmentvariable for the Output properties.
Properties
Common
- Continue On Error - This field only supports boolean values (True, False). The default value in this field is False. As a result, if this field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
- DisplayName - The display name of the activity. This field supports only strings or
Stringvariables.
Input
- File Path - The complete local path to the file that you want to upload. This field supports only strings or
Stringvariables. - Issue Key - The key of the Issue to add your attachment to. This field supports only strings or
Stringvariables.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Output
- Attachment - An Attachment object representing the file that was uploaded. This field supports only
Attachmentvariables. The variable you create for this property can be used as an input variable in subsequent activities (e.g., Download Attachment, etc.).