Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Request while tring to transition an issue. #2

Closed
paales opened this issue Sep 18, 2019 · 1 comment
Closed

Bad Request while tring to transition an issue. #2

paales opened this issue Sep 18, 2019 · 1 comment

Comments

@paales
Copy link

paales commented Sep 18, 2019

I'm having trouble transitioning an issue to the next phase. I'm new to GitHub Actions, so maybe it's something totally obvious, but it doesn't say whats wrong in the output.

2019-09-18T11:02:55.1725704Z Current runner version: '2.157.5'
2019-09-18T11:02:55.1747369Z Prepare workflow directory
2019-09-18T11:02:55.3090229Z Prepare all required actions
2019-09-18T11:02:55.3425511Z Download action repository 'atlassian/gajira-login@master'
2019-09-18T11:02:57.1301137Z Download action repository 'atlassian/gajira-find-issue-key@master'
2019-09-18T11:02:58.2332945Z Download action repository 'atlassian/gajira-transition@master'
2019-09-18T11:02:58.7112283Z ##[group]Run atlassian/gajira-login@master
2019-09-18T11:02:58.7188224Z env:
2019-09-18T11:02:58.7188815Z   JIRA_BASE_URL: ***
2019-09-18T11:02:58.7189084Z   JIRA_USER_EMAIL: ***
2019-09-18T11:02:58.7189269Z   JIRA_API_TOKEN: ***
2019-09-18T11:02:58.7189437Z ##[endgroup]
2019-09-18T11:03:01.5925855Z Logged in as: paales
2019-09-18T11:03:01.6353962Z ##[group]Run atlassian/gajira-find-issue-key@master
2019-09-18T11:03:01.6354173Z with:
2019-09-18T11:03:01.6354294Z   from: commits
2019-09-18T11:03:01.6354446Z ##[endgroup]
2019-09-18T11:03:02.2769469Z Detected issueKey: MT-1394
2019-09-18T11:03:02.2770292Z Saving MT-1394 to /home/runner/.jira.d/config.yml
2019-09-18T11:03:02.2770953Z Saving MT-1394 to /home/runner/jira/config.yml
2019-09-18T11:03:02.2904651Z ##[set-output name=issue;]MT-1394
2019-09-18T11:03:02.3007222Z ##[group]Run atlassian/gajira-transition@master
2019-09-18T11:03:02.3007416Z with:
2019-09-18T11:03:02.3007931Z   issue: MT-1394
2019-09-18T11:03:02.3008155Z   transition: Needs approval RC
2019-09-18T11:03:02.3008322Z ##[endgroup]
2019-09-18T11:03:03.2279846Z Error: Jira API error
2019-09-18T11:03:03.2280078Z Selected transition:{
2019-09-18T11:03:03.2301362Z     at Jira.fetch (/home/runner/work/_actions/atlassian/gajira-transition/master/dist/index.js:1:63222)
2019-09-18T11:03:03.2301681Z     "id": "361",
2019-09-18T11:03:03.2302232Z     at processTicksAndRejections (internal/process/task_queues.js:89:5) {
2019-09-18T11:03:03.2302441Z     "name": "Needs approval RC",
2019-09-18T11:03:03.2302778Z   req: {
2019-09-18T11:03:03.2302941Z     "to": {
2019-09-18T11:03:03.2303528Z     method: 'POST',
2019-09-18T11:03:03.2303898Z         "self": "***rest/api/2/status/10735",
2019-09-18T11:03:03.2304083Z         "description": "",
2019-09-18T11:03:03.2304368Z         "iconUrl": "***images/icons/statuses/generic.png",
2019-09-18T11:03:03.2304570Z         "name": "On RC",
2019-09-18T11:03:03.2304732Z         "id": "10735",
2019-09-18T11:03:03.2304894Z         "statusCategory": {
2019-09-18T11:03:03.2305443Z             "self": "***rest/api/2/statuscategory/3",
2019-09-18T11:03:03.2305776Z             "id": 3,
2019-09-18T11:03:03.2305954Z             "key": "done",
2019-09-18T11:03:03.2306102Z             "colorName": "green",
2019-09-18T11:03:03.2306254Z             "name": "Done"
2019-09-18T11:03:03.2306390Z         }
2019-09-18T11:03:03.2306839Z     },
2019-09-18T11:03:03.2306965Z     "hasScreen": true,
2019-09-18T11:03:03.2307096Z     "isGlobal": false,
2019-09-18T11:03:03.2307230Z     "isInitial": false,
2019-09-18T11:03:03.2308457Z     "isConditional": true
2019-09-18T11:03:03.2308667Z }
2019-09-18T11:03:03.2309170Z     body: '{"transition":{"id":"361"}}',
2019-09-18T11:03:03.2309663Z     url: '***/rest/api/3/issue/MT-1394/transitions'
2019-09-18T11:03:03.2309863Z   },
2019-09-18T11:03:03.2310030Z   res: {
2019-09-18T11:03:03.2310242Z     headers: [Object: null prototype] {
2019-09-18T11:03:03.2310422Z       server: [Array],
2019-09-18T11:03:03.2312779Z       'cache-control': [Array],
2019-09-18T11:03:03.2313163Z       'content-type': [Array],
2019-09-18T11:03:03.2313729Z       'strict-transport-security': [Array],
2019-09-18T11:03:03.2313923Z       date: [Array],
2019-09-18T11:03:03.2314515Z       'atl-traceid': [Array],
2019-09-18T11:03:03.2315108Z       'x-aaccountid': [Array],
2019-09-18T11:03:03.2315475Z       'x-arequestid': [Array],
2019-09-18T11:03:03.2316005Z       'x-xss-protection': [Array],
2019-09-18T11:03:03.2316360Z       'transfer-encoding': [Array],
2019-09-18T11:03:03.2316732Z       'timing-allow-origin': [Array],
2019-09-18T11:03:03.2317258Z       'x-content-type-options': [Array],
2019-09-18T11:03:03.2318421Z       connection: [Array],
2019-09-18T11:03:03.2318894Z       'set-cookie': [Array]
2019-09-18T11:03:03.2319066Z     },
2019-09-18T11:03:03.2319221Z     status: 400,
2019-09-18T11:03:03.2319412Z     body: { errorMessages: [Array], errors: {} }
2019-09-18T11:03:03.2319591Z   },
2019-09-18T11:03:03.2319753Z   originError: Error: Bad Request
2019-09-18T11:03:03.2320228Z       at /home/runner/work/_actions/atlassian/gajira-transition/master/dist/index.js:1:57166
2019-09-18T11:03:03.2320527Z       at processTicksAndRejections (internal/process/task_queues.js:89:5)
2019-09-18T11:03:03.2321053Z       at async Jira.fetch (/home/runner/work/_actions/atlassian/gajira-transition/master/dist/index.js:1:63111)
2019-09-18T11:03:03.2321866Z       at async e.exports.execute (/home/runner/work/_actions/atlassian/gajira-transition/master/dist/index.js:1:185856)
2019-09-18T11:03:03.2322291Z       at async exec (/home/runner/work/_actions/atlassian/gajira-transition/master/dist/index.js:1:7099),
2019-09-18T11:03:03.2322611Z   source: 'jira'
2019-09-18T11:03:03.2322749Z }
2019-09-18T11:03:03.2355609Z ##[error]Node run failed with exit code 1
2019-09-18T11:03:03.2470099Z Cleaning up orphan processes
@paales
Copy link
Author

paales commented Sep 18, 2019

Issue was because the transition required a fix version which the api didn't provide.

@paales paales closed this as completed Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant