[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:
patchback[bot] 2023-03-26 10:21:49 +02:00 committed by GitHub
commit 1260a63241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 82 additions and 3 deletions

View file

@ -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 }}"