How to script adding a new weblink to Jira issue from Jenkins pipeline DSL

Deleted user October 25, 2018

Can some provide some guidance how which command in the jira-steps-plugin can be used to add a new jira weblink from a jenkins pipeline stage.

Have setup integration between latest versions Jira and Jenkins along with setting a simple pipeline script to get several of the fields from Jira (watchers, comments) and now need to create a script to edit the jira issue to add new weblinks.

Tried using the following scrpits to get the list of RemoteIssue links but keep getting error.

def watches = jiraGetIssueWatches idOrKey: ddtlID, site: jiraSite

echo watches.data.toString()

try {
// def comments = jiraGetComments site: jiraSite idOrKey: ddtlID
// echo comments.data.toString()

def issueLink = jiraGetRemoteIssueLinks idOrKey: ddtlID, globalId: '10000', site: jiraSite, failOnError: false
echo issueLink.data.toString()
} finally {
echo 'No comments found'
}

 

java.lang.NoSuchMethodError: No such DSL method 'jiraGetRemoteIssueLinks' found among steps [archive, awaitDeploymentCompletion, awsIdentity, bat, build, catchError, cfInvalidate, cfnCreate

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events