Skip to content

Commit

Permalink
updating readme and transition rest api version (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudreau authored Nov 22, 2022
1 parent 9eeff12 commit f2ab3d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Jira Transition

Transition Jira issue

> ##### Only supports Jira Cloud. Does not support Jira Server (hosted)
Expand All @@ -14,7 +15,7 @@ Example transition action:
```yaml
- name: Transition issue
id: transition
uses: atlassian/gajira-transition@master
uses: atlassian/gajira-transition@v3
with:
issue: GA-181
transition: "In progress"
Expand All @@ -35,18 +36,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Login
uses: atlassian/gajira-login@master
uses: atlassian/gajira-login@v3
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

- name: Create new issue
id: create
uses: atlassian/gajira-create@master
uses: atlassian/gajira-create@v3

- name: Transition issue
uses: atlassian/gajira-transition@master
uses: atlassian/gajira-transition@v3
with:
issue: ${{ steps.create.outputs.issue }}
transition: "In progress"
Expand Down
2 changes: 1 addition & 1 deletion common/net/Jira.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Jira {

async transitionIssue (issueId, data) {
return this.fetch('transitionIssue', {
pathname: `/rest/api/3/issue/${issueId}/transitions`,
pathname: `/rest/api/2/issue/${issueId}/transitions`,
}, {
method: 'POST',
body: data,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Jira {

async transitionIssue (issueId, data) {
return this.fetch('transitionIssue', {
pathname: `/rest/api/3/issue/${issueId}/transitions`,
pathname: `/rest/api/2/issue/${issueId}/transitions`,
}, {
method: 'POST',
body: data,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit f2ab3d5

Please sign in to comment.