Info |
---|
|
This routine is available starting with katl-commons 3.0.2.
This routine is available for Jira server and cloud deployment options. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | attachFileFromURL(url_to_file, issue) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Adds an attachment located on an URL path to a selected issue. |
Adds an attachment located on an URL path to a selected issue.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
url to file | |
...
String | Yes | URL path to the file. | issue key |
|
...
String | Yes | Key of the issue the file will be attached to. |
|
...
Return
...
Type
boolean Boolean (true/false)
The return value represents the success of the attachment process. If the routine returns "true" the file was attached successfully.
...
Code Block |
---|
string url_to_file;
string issueKey;
url_to_file = "http://otherServer/generateForm.aspx?PackageName=customField_10192";
issueKey = "PRJ-239";
attachFileFromURL(url_to_file, issueKey);
|
Result: Returns True if the file is at the selected location and the issue exists, meaning the file was attached. Returns False if any of the conditions stated before are not met.
...
Note |
---|
If an error occurs, the routine will return "false" and the error message will be visible in the log. |
...
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label in ( = "jira_attachment_routine" , "ps_cloud" and space = currentSpace ( ) |
---|
labels | jiraarray_attachment_routineroutines |
---|
|