LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2018, 03:27 AM   #1
hruday
Member
 
Registered: Jun 2015
Posts: 88

Rep: Reputation: Disabled
create multiple jira issues for multiple jira keys using ansible


I am new to ansible and trying to create issues in jira using ansible loops concept.

For each jira key (ANS, SEL, PYC) need to create 5 following issues

Code:
Requirements
Deployment
Analysis
Build
Delivery
I've written following code

Code:
---
- name: create jira issues for multiple project keys
  jira:
    uri: http://jiraurlhost:8080
    username: user
    password: pass
    project: {{ item.0 }}
    operation: create
    summary: {{ item.1 }}
    description: Created using Ansible
    issuetype: Task
  with_nested:
    - [ ANS, SEL, PYC ]
    - [ Requirements, Deployment, Analysis, Build, Delivery ]
I tried using with_nested as well but ansible throws error. How can I solve this problem.

Last edited by hruday; 11-25-2018 at 08:19 AM.
 
Old 11-26-2018, 12:20 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by hruday View Post
I am new to ansible and trying to create issues in jira using ansible loops concept. For each jira key (ANS, SEL, PYC) need to create 5 following issues
Code:
Requirements
Deployment
Analysis
Build
Delivery
I've written following code
Code:
---
- name: create jira issues for multiple project keys
  jira:
    uri: http://jiraurlhost:8080
    username: user
    password: pass
    project: {{ item.0 }}
    operation: create
    summary: {{ item.1 }}
    description: Created using Ansible
    issuetype: Task
  with_nested:
    - [ ANS, SEL, PYC ]
    - [ Requirements, Deployment, Analysis, Build, Delivery ]
I tried using with_nested as well but ansible throws error. How can I solve this problem.
A few things:
  • You don't provide ANY details about your system (version/distro of Linux, Jira, Ansible, etc.)
  • You don't actually tell us WHAT error it's giving you
  • And you're NOT 'new to ansible', since you were asking about it last year: https://www.linuxquestions.org/quest...ng-4175600746/
..where you were pointed to the ansible docs. That would be a great place to start again.
 
1 members found this post helpful.
  


Reply

Tags
ansible, jira, linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ansible Tutorial: Introduction to simple Ansible commands LXer Syndicated Linux News 0 05-21-2018 10:28 AM
LXer: Ansible Tutorial: Intorduction to simple Ansible commands LXer Syndicated Linux News 0 01-14-2018 05:37 PM
JIRA startup "The following plugins are required by JIRA, but have not been started:" sndlt Linux - Server 4 05-28-2015 01:05 PM
Jira server startup error jayakumar01 Linux - Server 2 12-07-2011 01:44 PM
Tomcat - JIRA issue linuxguy08 Linux - Server 1 11-23-2010 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration