mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Add worklog functionality to jira module (#6210)
community.general#6209 Add worklog functionality to jira
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user