AtlassianPS / JiraPS

PowerShell module to interact with Atlassian JIRA
https://AtlassianPS.org/module/JiraPS
MIT License
321 stars 131 forks source link

Get-JiraIssue forces -TimeSpent to use Days. #506

Open ChipGandy opened 4 months ago

ChipGandy commented 4 months ago

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

Get-Module JiraPS -ListAvailable | Select Name, Version
$PSVersionTable

Possible Solution