AtlassianPS / JiraPS

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

Examples are wrong based on this property #431

Open VortexUK opened 3 years ago

VortexUK commented 3 years ago

https://github.com/AtlassianPS/JiraPS/blob/4f9604a9b5cb03d1bc9c77055faff94b7ac6ee7c/JiraPS/Public/Add-JiraIssueWorklog.ps1#L37

You infer in the examples that you can add time in seconds. But by specifying this as a [TimeSpan] any value given is actually Microseconds, which is not useful. Change this to be a simple int (and then convert to a timespan later if necessary)