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

Set-JiraIssue should accept comments #167

Closed
Clijsters opened this issue Aug 22, 2017 · 0 comments
Closed

Set-JiraIssue should accept comments #167

Clijsters opened this issue Aug 22, 2017 · 0 comments

Comments

@Clijsters
Copy link
Contributor

Expected Behavior

Set-JiraIssue should have a parameter like -Comment or -AddComment, as the JIRA REST Api supports adding comments by setting the issue like:

{
   "update": {
   "description": [
         {
            "set": "JIRA should also come with a free pony"
         }
      ],
      "comment": [
         {
            "add": {
               "body": "This request was originally written in French, which most of our developers can't read"
            }
         }
      ]
   }
}

This example can be found in the JIRA REST API Docs

The idea behind that lays in assigning an issue and also adding a comment, which is a normal practice.

Current Behavior

There is no parameter like described above.

Possible Solution

One possible solution is to build the expected behavior and support calls like:

Set-JiraIssue -Assignee "pete" -AddComment "Hey [~pete], please fix this. thx."

Alternatively, in the special case of assigning, as there is also a Set-JiraIssueLabel, I could imagine a Set-JiraIssueAssignee which is able to take a comment, but I think this is a kind of redundancy, we don't need.

Steps to Reproduce (for bugs)

  1. Get-Help Set-JiraIssue
Clijsters added a commit to Clijsters/JiraPS that referenced this issue Aug 23, 2017
@ghost ghost added Status:In Review and removed Status:Ready labels Aug 23, 2017
lipkau pushed a commit that referenced this issue Sep 7, 2017
* Add -AddComment to Set-JiraIssue, which closes #167
* Add some examples for -AddComment
@lipkau lipkau added this to the v2.3 milestone Sep 7, 2017
@lipkau lipkau closed this as completed Sep 7, 2017
@ghost ghost removed the Status:In Review label Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants