[JIRA] (JENKINS-60638) Example on "Releasing a project" is incorrect

8 views
Skip to first unread message

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 4, 2020, 3:55:03 PM1/4/20
to jenkinsc...@googlegroups.com
Arjun Gopisetty created an issue
 
Jenkins / Bug JENKINS-60638
Example on "Releasing a project" is incorrect
Issue Type: Bug Bug
Assignee: Arjun Gopisetty
Components: jira-steps-plugin
Created: 2020-01-04 20:54
Priority: Minor Minor
Reporter: Arjun Gopisetty

The [Releasing a project?|https://jenkinsci.github.io/jira-steps-plugin/getting-started/examples/release_project/] example code contains the following lines:

```

def transitionInput = [transition: [name: 'Close']]

jiraTransitionIssue idOrKey: issueKey, input: transitionInput

```

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. The `IssueTransition` parameter only takes the ID of the issue transition. The documentation needs to be fixed to rectify this mistake.

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 4, 2020, 3:57:04 PM1/4/20
to jenkinsc...@googlegroups.com
Arjun Gopisetty updated an issue
Change By: Arjun Gopisetty
The [Releasing a project?|[https://jenkinsci.github.io/jira-steps-plugin/getting-started/examples/release_project/]] example code contains the following lines:

```  
{code:java}
def transitionInput = [transition: [name: 'Close']]

jiraTransitionIssue idOrKey: issueKey, input: transitionInput {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 fixed to rectify this mistake.

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 4, 2020, 3:57:04 PM1/4/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 code contains the following lines:

 
{code:java}
def transitionInput = [transition: [name: 'Close']]
jiraTransitionIssue idOrKey: issueKey, input: transitionInput{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 fixed to rectify this mistake.

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 4, 2020, 4:43:03 PM1/4/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 code contains the following lines:
{code:java}
def transitionInput = [transition: [name: 'Close']]
jiraTransitionIssue idOrKey: issueKey, input: transitionInput{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 fixed to rectify this mistake corrected so the function call works .

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 5, 2020, 12:03:02 AM1/5/20
to jenkinsc...@googlegroups.com
Arjun Gopisetty started work on Bug JENKINS-60638
 
Change By: Arjun Gopisetty
Status: Open In Progress

arjun.gopisetty@gmail.com (JIRA)

unread,
Jan 5, 2020, 12:03:03 AM1/5/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages