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

Add-JiraIssueComment Internally #377

Open
ABricka opened this issue Aug 22, 2019 · 9 comments
Open

Add-JiraIssueComment Internally #377

ABricka opened this issue Aug 22, 2019 · 9 comments

Comments

@ABricka
Copy link

ABricka commented Aug 22, 2019

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
Copy link
Author

ABricka commented Aug 27, 2019

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
Copy link
Member

lipkau commented Oct 5, 2019

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
Copy link

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
Copy link

wonx commented May 5, 2021

I would also be very interested in this feature.

@johnnygtech
Copy link

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

@WEIGLBRC-Taylor
Copy link

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

@pauledavey
Copy link

Any news on this?

@HorridMutilation
Copy link

+1

@WEIGLBRC-Taylor
Copy link

WEIGLBRC-Taylor commented Jan 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants