Hi,
I have looked around and have create a hide field and revel when something is chosen eg. When resolution is duplicate, the duplicate link will be revelled and set to mandatory.
What I want to do now is to do it on the workflow at the post function. Is this possible?
My code so far is
def issueManager = ComponentAccessor.getIssueManager()
def constantsManager = ComponentAccessor.getConstantsManager()
def resolution = constantsManager.resolutions.findByName("Resolved")
def fixVersion= issue.getFixVersions()
if ( resolution == "Resolved" )
{
fixVersion.setRequired(true)
fixVersion.setHidden(false)
}
else {
fixVersion.setRequired(false)
fixVersion.setHidden(true)
}
The errors I'm getting is attached. Meanwhile I'll still look for an answer.
( I'm assuming is that my fixVersion is getting the value instead of the field? )