Dear All,
I need to add Scriptrunner validator to check comment for specific project. By now I got:
Hi @Kate
You can try something like that
import com.atlassian.jira.component.ComponentAccessor
def value = true
def project = issue.getProjectId()if(project == {{id}}){value = false
if (transientVars.get("comment")) { value = true }}return value
Thank you! Now I got error message
" XINFO: javax.script.ScriptException: ReferenceError: "comment" is not defined in <eval>"
for projects that don't meet conditions.
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.
Hi @Kate , If you have Transition screen Then simply add Script Runner field required validator.
No need to create custom validator.
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.