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 | copyAttachmentOnJSDComment(issue_source, attachment_name_or_regex, issue_jsd_target, username[, comment]) | Package | | Alias | | Pkg Usage | | |
Excerpt |
---|
|
Creates a new public comment containing the specified attachment(s). |
Creates a new public comment containing the specified attachment(s). Attachments are identified either by name or using a regex. If comment is absent, a default comment will be used.
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
issue_source | String | Yes | The key of the issue that contains the attachments. | attachment_name_or_regex | String | Yes | Attachment name or regex to match against attachments. | issue_jsd_target | String | Yes | The target JSD issue. In order for the routine to work, it is mandatory for this to belong to a JSD project. | username | String | Yes | The username to attribute the comment to. | comment | String | No | The comment to be used. If not provided, a default comment will be used. | |
Integer
The id of the comment that was created.
Creates a comment having a single attachment and using the default comment.
Code Block |
---|
|
return copyAttachmentOnJSDComment("ANY-101", "some_file.txt", "JSDTEST-42", currentUser()); |
Returns the id of the newly created comment.
Creates a comment having multiple attachments (all.png files) and using a custom comment.
Code Block |
---|
|
return copyAttachmentOnJSDComment("ANY-101", ".*\\.png", "JSDTEST-42", currentUser(), "Here are all the PNGs we found."); |
Returns the id of the newly created comment.
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "jsd_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|