Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Show fields based on other fields values

Katya Godneva
Contributor
December 10, 2018

Well-known plugin ectensions for JIRA service Desk offers to show fields based on other fields' values or options, on customer's portal.

I wonder, can the same somehow bw done for internal interface, agent's interface.

For example, if the agent sets the category of an issue as network problem, there appears a list of more specific categories, related to network, like

  • wireless
  • connectivity problem
  • IP adressing 
  • DNS failure

and so on.

Looks like we could use the feature (I dont's want to do more than one of these categories of an issue).

Thanks in advance for any suggestions.

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
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 10, 2018

As far as I remember you are on Cloud. You can not do it on Cloud.

Katya Godneva
Contributor
December 10, 2018

No, Server. Is that possible on server?

Alexey Matveev
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 10, 2018

You would need an add-on for it. Either Power Scripts or ScriptRunner.

I could help you with the Power Scripts.

Like Katya Godneva likes this
Katya Godneva
Contributor
December 10, 2018

That would be great. I have yet very little experience with power scripts.

Alexey Matveev
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 11, 2018

First you write a script like this:

lfWatch("customfield_10100", {"customfield_10100"}, "hook.sil");

 Then you connect this script to a LIve Field. You can find how to do it here:

https://confluence.cprime.io/display/JJUPIN/Live+Fields+Configuration

Then you create the hook.sil with a code like this:

if (argv["customfield_10100"] == "Network Problem") {
lfShow("customfield_10101");
lfShow("customfield_10102");
lfShow("customfield_10103");
lfShow("customfield_10104");

} else {
lfHide("customfield_10101");
lfHide("customfield_10102");
lfHide("customfield_10103");
lfHide("customfield_10104");

}

customfield_10100 - is the id of the Category field.

other custom fields are the 

  • wireless
  • connectivity problem
  • IP adressing 
  • DNS failure

custom fields.

Like Katya Godneva likes this
Katya Godneva
Contributor
December 16, 2018

Thanks a lot! that looks like the solution we were looking for! :)

Alexey Matveev
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 17, 2018

Ekaterina, You are most welcome!

Suggest an answer

Log in or Sign up to answer