I have a custom field in Jira and it is a drop down (Yes, No)
Now based upon the answer of this custom field, if Yes, then make another custom field (text unlimited) required.
custom field - Fiance Change (Yes, No)
custom field - Finance Approval (free form text field unlimited)
How do I make the Finance Approval custom field required if the drop down value of Finance Change is set to Yes?
I don't have any scripting knowledge and I don't see an easy way to create this behaviour.
The mandatory field in my side is JIRA System field "Linked Issues", I tried your script but it doesn't work, do you have any idea? Thanks
def A = getFieldByName("Root Cause") def B = getFieldByName("Linked Issues") B.setRequired(A.getValue() == "Caused by Defect Fix")
Hi Jamie - I'm using the solution you provided above, BUT I'm seeing something that I'm assuming is a bug. All initially seems to work fine except when I delete the contents of the field that's required it makes the field required when it shouldn't be (See Use Case below).
I'm hoping you have a solution on how to workaround it.
I have these two custom fields created...
The following script is associated with the Issue Blocked field...
def blockedCf = getFieldByName("Issue Blocked") def reasonCf = getFieldByName("Reason Blocked") reasonCf.setRequired(blockedCf.getValue() == "Yes")
Steps to reproduce the issue:
Along the lines of the original request....I need to do the following: system field - fixVersion custom field - Detected in Version (single version picker) custom field - Reason for Deferral (multi-select list) How do I mandate Reason for Deferral custom field if fixVersion does not match Detected in Version? Null value should be excluded from the mandate.
Does something need to be different if the cf is a scripted field? I am using following, where "Version Control" is a scripted CF that can contain "Deferred" or "In Scope" as values...this doesn't do anything. def versionCf = getFieldByName("Version Control") def reasonCf = getFieldByName("Reason for Deferral") reasonCf.setRequired(versionCf.getValue() == "Deferred")
Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs