I have two custom fields, the second field should pop up in create issue only if the value in first custom field matches certain text.
Is it possible to configure something like that ? Do suggest if anyone has done something like that.
Create a new behaviour and link it to the first field. Add a custom code :
@BaseScript FieldBehaviours fieldBehaviours
int secondFieldId = 12800
def secondField = getFieldById("customfield_" + secondFieldId)
//if underlyingIssue does not exist, it means we are in the issue creation
int firstFieldId = 12900
def firstField = getFieldById("customfield_" + firstFieldId)
def firstFieldValue = firstField.getValue()
You have to adapt it with your field ids and requirements. Let me know if you need something more specific. Note that this code will only trigger when the focus is lost on the first field.
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