Hi!
I want validate a value of select list (single choice) in parent issue on the create transition so I generate this expresión with scriptrunner, in the test is ok but when I tried to create an issue fails.
issue.parent != null && (issue.parent.issueType.name == "Project") && ((issue?.parent?.customfield_10061?.value == “agile”))
Or how would I restrict on the creation of epic issues only to issues type proyect (principal) with customfield set with option "agile"
Thanks
Hi @Angel, I can confirm that `issue.parent` on create screen only works for subtasks. This is documented in Jira Expressions types.
I reproduce the problem and it works when I create a subtask. So, it doesn't work for other issues under Plans hierarchy.
You might want to raise this with Atlassian to add support.
Hello, @Angel. I moved your post to App Central because your question is about Scriptrunner, an Atlassian Marketplace app.
If you don't happen to find your answer here, I suggest you contact the Scriptrunner support team directly for a faster response.
Best,
-dave
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.