AtlassianPS / JiraPS

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

Add-JiraIssueComment Internally #377

Open ABricka opened 4 years ago

ABricka commented 4 years ago

Hello team, i got a question where i can't found any reply. We use could jira and we use a functionality called "Comment Internally" to avoid users seeing our comment on their requests. I can't se in any issue or wiki how to add an internal comment via jiraps, have you some feature to do this ?

Thanks a lot for your reply, Alex

ABricka commented 4 years ago

There is the difference but i see nowhere in which kind of "-visibility" i can put them for internal comment (not viewable by users in jira service desk customer portal. For example this issue, the user will see only the last one comment, and not the other ones but in visibility field there is no special mention or whatever

Screenshot 2019-08-27 at 10 39 09 Screenshot 2019-08-27 at 10 44 24

lipkau commented 4 years ago

I believe any value for Visibility which is not in here will not be shown correctly be the module.

the Visibility needs some major refactoring in the module for allowing non-predefined values (or JSD for that matter)

EEAppDev commented 3 years ago

I just came across the very same situation - wanted to add an INTERNAL comment (Jira Service Desk, On-Prem Data Center installation) and can't get it to work.

wonx commented 3 years ago

I would also be very interested in this feature.

johnnygtech commented 2 years ago

I am also interested in this feature as well as uploading an internal attachment for 'developers or admins' to view

WEIGLBRC-Taylor commented 1 year ago

I'll pile on! I would LOVE this ability. :)

pauledavey commented 6 months ago

Any news on this?

HorridMutilation commented 5 months ago

+1

WEIGLBRC-Taylor commented 5 months ago

This isn't EXACTLY what we are looking for, but it does get the job done (just a little more verbose than using the module). I use this code against Jira Server, not certain if it will work against Jira Cloud. I thought it might help someone so, might as well post it :D

$JiraUsername = "jirauser"
$secJiraPassword = ConvertTo-SecureString $JiraPassword -AsPlainText -Force
$JiraCredentials = New-Object System.Management.Automation.PSCredential ($JiraUsername, $secJiraPassword)
$Body = @{ 
        "body" = "||*Added to today's commitments; Next Steps:*||`n|$($nextsteps)|`n|#TechEstimateInMinutes:$($techestimate)|"
        "public" = $false
        }

$JsonBody = $Body | ConvertTo-Json
$JsonBody = [System.Text.Encoding]::UTF8.GetBytes($JsonBody)
$RestParams = @{
        Method = "Post"
        Uri = "https://jiraserver.mydomain.com/rest/servicedeskapi/request/$($key)/comment?nofifyUsers=false"
        Body = $JsonBody
        ContentType = "application/json"
        Credential = $JiraCredentials
        Authentication = "Basic"         
        }
Invoke-RestMethod @RestParams | Out-Null