mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
[PR #6210/be7f11bf backport][stable-6] Add worklog functionality to jira module (#6248)
Add worklog functionality to jira module (#6210)
community.general#6209 Add worklog functionality to jira
(cherry picked from commit be7f11bf39
)
Co-authored-by: Hugo Prudente <hugo.kenshin@gmail.com>
This commit is contained in:
parent
f6aad230c2
commit
1260a63241
3 changed files with 82 additions and 3 deletions
|
@ -67,6 +67,24 @@
|
|||
that:
|
||||
- assign is changed
|
||||
|
||||
- name: Worklog on issue
|
||||
community.general.jira:
|
||||
uri: '{{ server }}'
|
||||
username: '{{ user }}'
|
||||
password: '{{ pass }}'
|
||||
issue: '{{ issue.meta.key }}'
|
||||
operation: worklog
|
||||
comment: Worklog
|
||||
fields:
|
||||
timeSpentSeconds: 1200
|
||||
register: worklog
|
||||
- name: assert worklog -> with comment
|
||||
assert:
|
||||
that:
|
||||
- worklog is changed
|
||||
- worklog.meta.comment == 'Worklog'
|
||||
- worklog.meta.timeSpentSeconds == 1200
|
||||
|
||||
- name: transition -> Resolved with comment
|
||||
community.general.jira:
|
||||
uri: "{{ uri }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue