AtlassianPS / JiraPS

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

Add-JiraIssueComment can't leave comments on tickets in Jira Service Desk #213

Closed JoeJe1993 closed 6 years ago

JoeJe1993 commented 6 years ago

Expected Behavior

On an existing Jira Service Desk ticket, Add-JiraIssueComment should be able to leave a comment.

Current Behavior

When executing Add-JiraIssueComment:

image

No comment left:

image

Your Environment

image image

JoeJe1993 commented 6 years ago

I have just updated JiraPS and I'm still getting the same problem:

image

JoeJe1993 commented 6 years ago

Strange behaviour: Our Jira Slack plugin is picking up the comments I'm trying to make.

image

lipkau commented 6 years ago
  1. In the screen of the web UI of the issue, can you select the "Comments" tab?
  2. what happens when you open the "RestUrl" of the object powershell is returning?
JoeJe1993 commented 6 years ago

image

image

lipkau commented 6 years ago

It appears to me that the Service Desk is not showing some kind of comments. So the comment is there - was created successfully. now the question is... what is happening...

did you create the comment with 2.2 or 2.4? 2.3 changes the default visibility of comments: https://github.com/AtlassianPS/JiraPS/releases/tag/v2.3.160

JoeJe1993 commented 6 years ago

I don't see -AddComment appearing on Set-JiraIssue. After updating, I did Remove-Module JiraPS and then Import-Module JiaPS.

image

lipkau commented 6 years ago

Add-JiraIsssueComment -Issue ABC-1234 -Comment "hello there" -VisibleRole "All Users"