When entering a new work log entry, the time field is incorrectly setting time to days. -Timespent only accepts whole numbers, and converts that to days.
Steps To Reproduce
Get-JiraIssue deng-220| Add-JiraIssueWorklog -Comment "This is a test" -TimeSpent "120" -DateStarted (get-date)
Comment : This is a test
Started : 2/23/2024 1:58:18 PM
ID : 473709
TimeSpentSeconds : 10368000
Visibility :
TimeSpent : 72w
Author : ME
Created : 2/23/2024 1:58:33 PM
Updated : 2/23/2024 1:58:33 PM
UpdateAuthor : ME
RestUrl : https://MYURL/rest/api/2/issue/2206558/worklog/473709
Expected behavior
Screenshots
Your Environment
Get-Module JiraPS -ListAvailable | Select Name, Version
$PSVersionTable
Description
When entering a new work log entry, the time field is incorrectly setting time to days. -Timespent only accepts whole numbers, and converts that to days.
Steps To Reproduce
Get-JiraIssue deng-220| Add-JiraIssueWorklog -Comment "This is a test" -TimeSpent "120" -DateStarted (get-date)
Comment : This is a test Started : 2/23/2024 1:58:18 PM ID : 473709 TimeSpentSeconds : 10368000 Visibility : TimeSpent : 72w Author : ME Created : 2/23/2024 1:58:33 PM Updated : 2/23/2024 1:58:33 PM UpdateAuthor : ME RestUrl : https://MYURL/rest/api/2/issue/2206558/worklog/473709
Expected behavior
Screenshots
Your Environment
Possible Solution