I should write in a behaviour if i want field "due date" be shown only if priority is "To time" and i done it:
import com.atlassian.jira.issue.IssueConstantImpl
def priority = getFieldById(getFieldChanged())
def selectedPriority = ((IssueConstantImpl) priority.getValue()).getName()
def SV = getFieldByName("due date")if ( selectedPriority == "To time") {
SV.setHidden(false)
} else {
SV.setHidden(true)
}
And the main question what to write to make "due date" required field and only when it shown on the create screen ?
Need help please
Hi @Stanislav
Why don't you use a validator (field required) to create issue transition on workflow? I mean make the "due date" field, required to create transition on workflow?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ashkan Malekly Because it only need to be required when i choose priority "To time" and the script that i wrote show this field on the create issue screen. Else it should not be required!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.