How-to make comments internal on certain incoming emails


I want to add a listener to my service desk project, when comment is added to issue (by email response). If email is from a user who is not reporter or in issue participants, then issue comment must be set to "Internal".

How can I achieve this?

Thank you in front.



1 answer

Hello Triinu.

A lot of people have asked stuff like this before. I don't think you can listen to that specific transition(email that turns into a comment). However, I think that if you listen to normal comments, it could work. 

You need to use a listener for an event that is "onIssueCommented" I believe. Then you need to see if the comment author matches your request participants, and if he doesn't apply the next code: 

You can see here how to make a comment public if it's internal, and you can use that very same code to switch it around and make public comments internal. 

If I didn't explain myself well enough, tell meand I'll try to help you further.



Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

359 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you