Dear All,
I'd like to check if a comment in an issue is external or external. Can I do this somehow? As I see I can only get the id, text, author, created, updatedby and updated types with getComment().
What I'm trying to achieve is a custom field which returns a boolean whether the last external comment is by a service-desk-agent or by a customer. If its by a customer, the field returns false, meaning the service desk agent hasn't replied yet to the customer. If it's by a service-desk-agent, it returns true, meaning he/she replied to the customer.
Thank you,
Viktor
Community moderators have prevented the ability to post new answers.
External is a public comment, which is created by a service desk agent or an external/customer user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think we should start with defenition what is it an external comment. I assume that this is a comment created by external user. Since we should to do a decigion based on group mambership of a comment creator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, part of my condition is examining the group membership of the comment creator, using the isUserInGroup(group, user) function. But this isn't enough, because a service-desk-agent can also add an internal comment, and I need only public comments by service-desk-agents.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see. To get restrictions you should use getGroupLevel() or getRoleLevel() methods.
If both of it are nulls, it means that comment is public.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.