Forums

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

How add hostname field as mandatory based on priority?

Sailaja Ponnala May 9, 2022

Hi

 

How to add hostname field as mandatory based on priority? Hostname should be available only for sev1 and sev2 type tickets

 

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
May 10, 2022

Welcome to the Atlassian Community!

Do you have Scriptrunner available?  You can do this with a Behaviour (assuming you are on Server Jira).  If not, then you'll need to do it with an extenion that provides a validator.

Or, you could do it by having different issue types for the priorities "incident high impact" and "incident low impact" for example.

Sailaja Ponnala May 11, 2022

Hii

 

Yes thank you i didn't thought that i receive answer.thank you .

 

 

 

 

 

 

 

 

 

 



Sailaja Ponnala May 16, 2022

Hi sir
I have used this script
String var1=argv["priority"];
String var2=argv["custom field_10207];
If((var1=="Highest"&&var2=="Highest"))
{
Lfshowfieldmessage("custom field_17710","field required","Warning");
}
Else{
Lfhide("custom field_17710");
}


For this i have done live field function also
LfInstantHook({"priority","customfield_17710", customfield_10207"}," Hostname_mandatory_Sev.sil");
Lfwatch ("customfield_17710",{"priority","customfield_10207","custom field_17710"}, Hostname_mandatory_Sev.sil");

This want i have written i could get the requirement if choose priority and urgency high means that hostname field is not at all hiding..or else could please post related vedio please sir i am requesting . could please tell where i am mistaken

Sailaja Ponnala May 19, 2022

Could you please tell me where I am mistaken, please it would be more helpful

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events