[JIRA] (JENKINS-60638) Fix jiraTransitionIssue code samples in documentation

11 views
Skip to first unread message

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 5, 2020, 12:50:02 PM1/5/20
to jenkinsc...@googlegroups.com
Arjun Gopisetty updated an issue
 
Jenkins / Bug JENKINS-60638
Fix jiraTransitionIssue code samples in documentation
Change By: Arjun Gopisetty
Summary: Example on "Releasing a project" is incorrect Fix jiraTransitionIssue code samples in documentation  
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 5, 2020, 12:52:03 PM1/5/20
to jenkinsc...@googlegroups.com
Arjun Gopisetty updated an issue
The [Releasing a project?|[https://jenkinsci.github.io/jira-steps-plugin/getting-started/examples/release_project/]] example and [the project homepage|[https://jenkinsci.github.io/jira-steps-plugin/]] code examples contains the following lines:
{code:java}
def transitionInput = [transition: [name: 'Close']]
jiraTransitionIssue idOrKey: issueKey, input: transitionInput{code}
  {code:java}
def transitionInput = [ transition: [ name: 'Close'] ]
jiraTransitionIssue idOrKey: 'RELEASE-999', input: transitionInput, site: 'YOURJIRASITE'{code}
However, this is not valid for the Jira API endpoint: [https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issue-issueIdOrKey-transitions-post.|https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issue-issueIdOrKey-transitions-post] The *IssueTransition* parameter only takes the ID of the issue transition. The documentation needs to be corrected so the function call works.

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 5, 2020, 1:33:02 PM1/5/20
to jenkinsc...@googlegroups.com

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 5, 2020, 1:33:02 PM1/5/20
to jenkinsc...@googlegroups.com
Arjun Gopisetty assigned an issue to Naresh Rayapati
Change By: Arjun Gopisetty
Assignee: Arjun Gopisetty Naresh Rayapati

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 5, 2020, 1:33:02 PM1/5/20
to jenkinsc...@googlegroups.com

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 15, 2020, 1:01:07 AM1/15/20
to jenkinsc...@googlegroups.com

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 15, 2020, 1:01:07 AM1/15/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages