Hi..I need to check if the issueType is a story or a subtask..for that matter..I need to check the issueaType and add that condition in groovy script.
I used getIssueType() == "Story"
and getIssueType().getName() == "Story"
neither of them seem to be working. I cannot use issue.issueTypeObject.name == ''Story" as I am using a version above 7.0. Any leads regarding the same?
What do you mean it is not working.
Try to log to the log file the value of getIssueType().getName()
log.error(issue.getIssueType().getName() )
and see its value.
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.