AtlassianPS / JiraPS

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

Please Add possibility to add Worklog during Add-JiraIssueTransition #314

Open alexsuslin opened 5 years ago

alexsuslin commented 5 years ago

Below is working POST example to jira REST method with body

POST : /api/2/issue/{issueIdOrKey}/transitions

{
    "update": {
        "comment": [
            {
                "add": {
                    "body": "Bug has been fixed."
                }
            }
        ],
       "worklog": [
            {
                "add": {
                    "timeSpent": "60m",
                    "started": "2011-07-05T11:05:00.000+0000"
                }
            }
        ]
    }  ,
  "transition" : { 
    "id" : "5"
  } 
}

Is your feature request related to a problem? Please describe.

I want to resolve an issue, however there is a screen with Time Spent field required on it

Description

I would like additional parameter like -Worklog 15