Scriptrunner Behaviour to Hide 'Respond to Customer' comments only.

David Harkins
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 2, 2021

Using Script runner Behaviours we can hide the 'Comment' field.

In Service Management, this is made up of:

  • Respond To Customer
  • Internal Comment

For one of our transitions, we need to ensure that the agent's comments are always internal, hence the removal of the 'Respond to Customer' option.

Has anyone done this prior? or does anyone have a starting point ?

 

1 answer

3 votes
Sebastian Krzewiński
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 2, 2021

Hi @David Harkins 

 

Script runner behaviours works with fields on create/edit/transition screens. It didn't work with buttons under screens.

IMO you need to use CSS/JS to hide it. You can use it in Jira or you can use fragments in script runner:

https://confluence.atlassian.com/jirakb/how-to-hide-elements-in-jira-using-css-or-javascript-958774526.html

- https://scriptrunner.adaptavist.com/latest/jira/fragments/WebResource.html

 

Regards,

Seba

David Harkins
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2022

@Sebastian Krzewiński 

I am looking to hide the customer comments section on a Transition Screen

so that the agent can only add an internal comment, so the highlight section should not be available:

Screenshot 2022-02-03 184011.jpg

Sebastian Krzewiński
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 2, 2022

Hi @David Harkins 

 

You can achieve this by using workaround from this issue (https://jira.atlassian.com/browse/JSDSERVER-1733) but you need to remember that this is global change. 

 

Unfortunately Atlassian split JSDSERVER-1733 and part connected to comment field on transitions screen was moved to https://jira.atlassian.com/browse/JSDSERVER-7166 and it is in gathering information status. 

 

I didn't find any app that will help with that.

 

Regards,

Seba

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events