Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

hot to Create JIRA ticket using Ansible playbook

yugendran August 21, 2019

Hi 

Any help on this greatly appreciated.

Actually i am new to this, I am writing an yaml file to create JIRA ticket through ansible.

I have the script to connect to JIRA, But i got the error 

"Skipping no hosts matched" on execution.

this is the script i have:

also if possible anyone can share me a working sample script to create jira ticket

---
- hosts: "{{host_name}}"
remote_user: "{{run_user}}"
vars_prompt:
- name: user name
prompt: "Enter the username"
private: no
- name: password
prompt: "Enter the password"
tasks:
- name: connecting to jira
uri:
url: https://jira.global.xxxxxx.com
user: '{{user name}}'
password: '{{password}}'
method: GET
return_content: yes
status_code: 200
register: Status
- debug:
var: Status.stdout_lines

1 answer

0 votes
DPKJ
Community Champion
August 21, 2019

Playbook itself has great example to create Jira Ticket.

What error you are getting?

https://docs.ansible.com/ansible/latest/modules/jira_module.html#examples

Sarah Dwyer September 28, 2020

Above link is broken, now it's here: https://docs.ansible.com/ansible/2.4/jira_module.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events