Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ChipGandy opened this issue Feb 23, 2024 · 0 comments
Open

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

ChipGandy opened this issue Feb 23, 2024 · 0 comments

Comments

@ChipGandy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant