I have created calendars in my space to embed in pages but they will not show up in the team calendar list when I try and embed them using the /calendar macro. I have had this happen before, and it can take some time, but it has been 2 days now and I still am not getting them as options in my add list. I can see the other calendars I have but not the new ones.
Hi @gabe vid
Try this code to make Instance field required when Issue Type is either Epic or Story.
def issueTypeValue = getFieldById(getFieldChanged()).getValue()
def instanceField = getFieldByName("Instance")
switch (issueContext.issueType.name ) {
case "Epic":
instanceField.setRequired(true)
break
case "Story":
instanceField.setRequired(true)
break
default:
instanceField.setRequired(false)
break
}
I hope it helps.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
The script works fine at the time of creation of issue. But when i am trying to edit an Existing Issue and then changing the "Issue type" the custom field does not becomes mandatory or non mandatory.
I have placed the same script in the Server Script for the field "ISSUE TYPE" but it does not seems to be working
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.