Closed 123dev closed 6 years ago
Thanks for reporting this. Indeed I also find it weird that the default value for the visibility is Developers: https://github.com/AtlassianPS/JiraPS/blob/master/JiraPS/Public/Add-JiraIssueComment.ps1#L48
I agree with changing the default to All Users
.
Do you have more visibility roles than the 3 in the code?
Thanks Oliver.
Yes, we have more, the way Jira allows us to select is:
All Users, then lists all Project Roles and then lists all Groups (see pic)
I guess the best way would be for those options to be dynamically loaded, but I understand that's must bigger work. I'd be happy with All Users being selected by default, and perhaps an option to specify different security level if one chooses to (not necessary for our use case, All users choice is good enough)
I didn't realize that this option was available.
so I just added this to my command
-VisibleRole 'All Users'
This should do it for us. But the default eventually changing to 'All Users' would be good idea.
Thanks
$VisibleRole
to All Users
Changing the parameter is a breaking change This is continue by: #174
Expected Behavior
We use
Add-JiraIssueComment
-Issue $jiraID -Comment $comment -Credential $cred` to add comments to tickets, We're expecting the comments to be added in default security context All Users However they are being added with some security context that is non-default (we have many)See attachment.![image](https://user-images.githubusercontent.com/13109154/30492288-fe105f2e-9a0d-11e7-868d-cecf4e4428f6.png)
Steps to Reproduce (for bugs)
Add-JiraIssueComment
-Issue $jiraID -Comment $comment -Credential $cred`Environment