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

Show custom field based on the value of another field

Zaldy Parian
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.
Nov 13, 2023

Hi all,

Knowing that ScriptRunner Behaviour is still not available to JSM Cloud, I wanted to utilise Script Listener for my business requirement.

I got a custom field: Resolved during initial call (customfield_10219); which is a radio button defaulted to 'No'.

The requirement is, if the value of Resolved during initial call field is set to 'Yes', then show the fields:

- custom field: Resolution comment (customfield_10215), and
- system field: Resolution

How can I achieve this using REST API script?

Most of the previous postings here were using Behaviours or Server instance.

 

Regards,

 

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 14, 2023 • edited

Hi Zaldy,

Unfortunately, as Behaviours in Jira Cloud does not yet support Jira Service management, your requirement will not be possible as no other ScriptRunner features can show or hide fields.

The reason we cannot JSM currently is that Atlassian does not support it in the UI Modifications API, which behaviours runs on.

Atlassian has a ticket for this located here, and I would advise you to add your use case for this requirement to the Atlassian ticket and to our own internal feature request listed here.

As a workaround, the best you could do is to use a script listener to add a comment if the field was set to Yes and if the fields were not populated, ask users to fill these in.

We have examples in our docs of how to check if a field has a certain value here and how to add a comment here, which could help you to achieve this requirement.

I hope this information helps.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events