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

Jira transsition issue is not working #109

Closed
pertoft opened this issue Apr 3, 2020 · 0 comments
Closed

Jira transsition issue is not working #109

pertoft opened this issue Apr 3, 2020 · 0 comments

Comments

@pertoft
Copy link
Contributor

pertoft commented Apr 3, 2020

Jira Transsition issue is not working

The Jira module is outdatred and does not use the correct Jira REST call.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

modules/web_infrastructure/jira.py
community.general/plugins/modules/web_infrastructure/jira.py

ANSIBLE VERSION
pto:ansible pto$ ansible --version
ansible 2.9.4
  config file = /Users/pto/infrastructure/ansible/ansible.cfg
  configured module search path = ['/Users/pto/infrastructure/ansible/library']
  ansible python module location = /Users/pto/Library/Python/3.8/lib/python/site-packages/ansible
  executable location = /Users/pto/Library/Python/3.8/bin/ansible
  python version = 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)]
pto:ansible pto$
CONFIGURATION
pto:ansible pto$ ansible-config dump --only-changed
CACHE_PLUGIN(/Users/pto/infrastructure/ansible/ansible.cfg) = jsonfile
CACHE_PLUGIN_CONNECTION(/Users/pto/infrastructure/ansible/ansible.cfg) = /tmp/facts_cache
CACHE_PLUGIN_TIMEOUT(/Users/pto/infrastructure/ansible/ansible.cfg) = 7200
DEFAULT_GATHERING(/Users/pto/infrastructure/ansible/ansible.cfg) = smart
DEFAULT_HOST_LIST(/Users/pto/infrastructure/ansible/ansible.cfg) = ['/Users/pto/infrastructure/ansible/inventory.yml']
DEFAULT_MODULE_PATH(/Users/pto/infrastructure/ansible/ansible.cfg) = ['/Users/pto/infrastructure/ansible/library']
DEFAULT_ROLES_PATH(/Users/pto/infrastructure/ansible/ansible.cfg) = ['/Users/pto/infrastructure/ansible/roles']
DEFAULT_VAULT_PASSWORD_FILE(/Users/pto/infrastructure/ansible/ansible.cfg) = /Users/pto/.vault
HOST_KEY_CHECKING(/Users/pto/infrastructure/ansible/ansible.cfg) = False
pto:ansible pto$
OS / ENVIRONMENT

Macos Catalina 10.15.4

STEPS TO REPRODUCE
# Transition an issue by target status
    - name: Change to Production
      jira:
        uri: 'https://jira.com/'
        username: '{{ jira_username }}'
        password: '{{ jira_password }}'
        project: CMDB
        issue: "ISSUE-111"
        operation: transition
        status: "Change to Production"
        validate_certs: no
      args: 
        fields:        
          comment: "Test"

This is incorrect according to latest Jira documentation: https://docs.atlassian.com/software/jira/docs/api/REST/8.5.4/#api/2/issue-doTransition

EXPECTED RESULTS

{ "update":{ "comment":[ { "add":{ "body":"Test" } } ] }, "transition":{ "id":"5" } }

ACTUAL RESULTS

This results in the REST call:
{ "fields": { "comment": "Test" }, "transition": { "id": "241" } }

pertoft pushed a commit to pertoft/community.general that referenced this issue Apr 3, 2020
amenzhinsky pushed a commit to amenzhinsky/community.general that referenced this issue Nov 13, 2020
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