mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
* attempt at fixing the issue
* Update plugins/modules/web_infrastructure/jira.py
* Fixed setting of "fields" element in the payload
* added changelog fragment
* added accountId parameter + minor fixes in docs
* added integration test for jira
* adjustments per PR
* Update plugins/modules/web_infrastructure/jira.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/web_infrastructure/jira.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/web_infrastructure/jira.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/web_infrastructure/jira.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/web_infrastructure/jira.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* adjustments per PR
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit beb3b85a4f)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
2
tests/integration/targets/jira/aliases
Normal file
2
tests/integration/targets/jira/aliases
Normal file
@@ -0,0 +1,2 @@
|
||||
unsupported
|
||||
shippable/posix/group3
|
||||
58
tests/integration/targets/jira/tasks/main.yml
Normal file
58
tests/integration/targets/jira/tasks/main.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
---
|
||||
- community.general.jira:
|
||||
uri: "{{ uri }}"
|
||||
username: "{{ user }}"
|
||||
password: "{{ pasw }}"
|
||||
project: "{{ proj }}"
|
||||
operation: create
|
||||
summary: test ticket
|
||||
description: bla bla bla
|
||||
issuetype: Task
|
||||
register: issue
|
||||
|
||||
- debug:
|
||||
msg: Issue={{ issue }}
|
||||
- name: Add comment bleep bleep
|
||||
community.general.jira:
|
||||
uri: "{{ uri }}"
|
||||
username: "{{ user }}"
|
||||
password: "{{ pasw }}"
|
||||
issue: "{{ issue.meta.key }}"
|
||||
operation: comment
|
||||
comment: bleep bleep!
|
||||
- name: Transition -> In Progress with comment
|
||||
community.general.jira:
|
||||
uri: "{{ uri }}"
|
||||
username: "{{ user }}"
|
||||
password: "{{ pasw }}"
|
||||
issue: "{{ issue.meta.key }}"
|
||||
operation: transition
|
||||
status: Start Progress
|
||||
comment: -> in progress
|
||||
- name: Change assignee
|
||||
community.general.jira:
|
||||
uri: "{{ uri }}"
|
||||
username: "{{ user }}"
|
||||
password: "{{ pasw }}"
|
||||
issue: "{{ issue.meta.key }}"
|
||||
operation: edit
|
||||
accountId: "{{ user2 }}"
|
||||
- name: Transition -> Resolved with comment
|
||||
community.general.jira:
|
||||
uri: "{{ uri }}"
|
||||
username: "{{ user }}"
|
||||
password: "{{ pasw }}"
|
||||
issue: "{{ issue.meta.key }}"
|
||||
operation: transition
|
||||
status: Resolve Issue
|
||||
comment: -> resolved
|
||||
accountId: "{{ user1 }}"
|
||||
fields:
|
||||
resolution:
|
||||
name: Done
|
||||
description: wakawakawakawaka
|
||||
|
||||
- debug:
|
||||
msg:
|
||||
- Issue = {{ issue.meta.key }}
|
||||
- URL = {{ issue.meta.self }}
|
||||
7
tests/integration/targets/jira/vars/main.yml
Normal file
7
tests/integration/targets/jira/vars/main.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
uri: https://xxxx.atlassian.net/
|
||||
user: xxx@xxxx.xxx
|
||||
pasw: supersecret
|
||||
proj: ABC
|
||||
user1: 6574474636373822y7338
|
||||
user2: 6574474636373822y73959696
|
||||
Reference in New Issue
Block a user