Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Hide and set Summary in the portal for customers

Hi,

I'm not sure what's wrong here. I've added a behaviour which hides summary and sets the request type name of the chosen request type:

getFieldById('summary').setHidden(true)
getFieldById('summary').setFormValue(requestTypeName)

 The thing is that this works for agents with a jira license, but not for customers without a jira license.

 

Regards

Brian

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Jia Jie
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.
Jan 20, 2021

Hi Brian,

Not sure which Scriptrunner version you're using but it could be related to this bug here: https://productsupport.adaptavist.com/browse/SRJIRA-4876

It was fixed in Scriptrunner version 6.15.0.

0 votes
Joshua Sneed Contegix
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.
Jan 18, 2021

Hi Brian,

Setting the Summary can be performed by JSM native functionality and copying field values can be performed by a post function. This raises the question of why you are using a Behaviour.

To use native functionality:

  1. Set the field as hidden in the request and provide any value.
  2. Create a post function on the create transition to copy the Request type to the Summary. This may have to be after the 'creates issue' or 'save to database' post functions.
    • Note: This devalues the Summary as it introduces duplicate information to the issue and deviates from best practice.

Cheers!

Hi,

Thank you for the reply.

I'm using Email This Issue for incoming mail, and this will not accept summary as a hidden field in any of the request types, which it uses to create tickets in. So I have to hide this without using native methods, it would seem.

Joshua Sneed Contegix
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.
Jan 19, 2021

Welcome Brian,

It seems to me that you are going against Atlassian's intentions for the Summary field. Please consider why it is the only field that is always required and how that is playing into your problem. The best solution is likely not technical, but changing a real world process or behavior.

You can investigate the portal section of your script (referenced in https://scriptrunner.adaptavist.com/5.5.9/jira/CustomisingUI.html) if you would like to continue with the technical solution. Cheers!

Thank again.

 

I agree, but the owner of the process insists, and will not have in other ways.

Like brady_leach likes this
TAGS
AUG Leaders

Atlassian Community Events