{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2022","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2022/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2022/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2022/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2022","id":148058749,"number":2022,"title":"Jira transisition not working by using status=\"\"","user":{"login":"offlinehoster","id":1618359,"avatar_url":"https://avatars.githubusercontent.com/u/1618359?v=3","gravatar_id":"","url":"https://api.github.com/users/offlinehoster","html_url":"https://github.com/offlinehoster","followers_url":"https://api.github.com/users/offlinehoster/followers","following_url":"https://api.github.com/users/offlinehoster/following{/other_user}","gists_url":"https://api.github.com/users/offlinehoster/gists{/gist_id}","starred_url":"https://api.github.com/users/offlinehoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offlinehoster/subscriptions","organizations_url":"https://api.github.com/users/offlinehoster/orgs","repos_url":"https://api.github.com/users/offlinehoster/repos","events_url":"https://api.github.com/users/offlinehoster/events{/privacy}","received_events_url":"https://api.github.com/users/offlinehoster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/affects_2.0","name":"affects_2.0","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-04-13T13:17:39Z","updated_at":"2016-10-06T18:03:14Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\njira.py\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.0.1.0\r\n\r\n```\r\n\r\n##### CONFIGURATION\r\ndefault\r\n\r\n##### OS / ENVIRONMENT\r\nUbuntu 15.10\r\n\r\n##### SUMMARY\r\nI'm running a playbook with a jira role, inside\r\n\r\n`- name: Get information for an issue\r\n  jira: uri={{jiraserver}} username={{admin_account}} password={{admin_password}}\r\n        project=TEST operation=fetch issue=\"{{jiraissue}}\"\r\n  register: issue\r\n\r\n- name: Close the issue\r\n  jira: uri={{jiraserver}} username={{admin_account}} password={{admin_password}}\r\n        issue={{issue.meta.key}} operation=transition status=\"6\"\r\n`\r\n\r\nI thought this should work. For status i used also \"Done\" or/and the german values i found at \r\nhttps://jiraurl/rest/api/2/issue/{{jiraissue}}/transitions\r\n\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\nUse the showed playbook/role above\r\n\r\n##### EXPECTED RESULTS\r\nTicket should be closed\r\n\r\n##### ACTUAL RESULTS\r\n\r\n```\r\nTASK [jiraCommentClose : Close the issue] **************************************\r\nfatal: [127.0.0.1]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Failed find valid transition for '6'\"}\r\n```\r\n\r\n\r\nIf i use curl to use this transisition with:\r\n```\r\ncurl -D- -u username -X POST --data '{\"transition\":{\"id\":\"6\"}}' -H \"Content-Type: application/json\" https://jiraurl/rest/api/latest/issue/TEST-1234/transitions?expand=transitions.fields\r\n```\r\nit is working.\r\n\r\nAny ideas?\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/252041605","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2022#issuecomment-252041605","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2022","id":252041605,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T18:03:13Z","updated_at":"2016-10-06T18:03:13Z","body":"@tarka, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}