JiraPS icon indicating copy to clipboard operation
JiraPS copied to clipboard

Add-JiraIssueComment Internally

Open ABricka opened this issue 6 years ago • 9 comments

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 avatar Aug 22 '19 13:08 ABricka

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

ABricka avatar Aug 27 '19 08:08 ABricka

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)

lipkau avatar Oct 05 '19 15:10 lipkau

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.

EEAppDev avatar Mar 24 '21 12:03 EEAppDev

I would also be very interested in this feature.

wonx avatar May 05 '21 14:05 wonx

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

johnnygtech avatar Sep 07 '21 17:09 johnnygtech

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

WEIGLBRC-Taylor avatar Sep 29 '22 20:09 WEIGLBRC-Taylor

Any news on this?

pauledavey avatar Dec 18 '23 17:12 pauledavey

+1

HorridMutilation avatar Jan 23 '24 18:01 HorridMutilation

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

WEIGLBRC-Taylor avatar Jan 23 '24 18:01 WEIGLBRC-Taylor