The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events