Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,003
Community Members
 
Community Events
165
Community Groups

How add hostname field as mandatory based on priority?

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

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.


Hii

 

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

 

 

 

 

 

 

 

 

 

 



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

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you