Hello Community.
kindly guide, i am using post function to "comment on issue" and have a below condition
issue.get("issuetype")?.name == "Demand"&&issue.get("priority")?.name == "3-Major"||issue.get("priority")?.name == "4-Minor"||issue.get("priority")?.name == "5-Trivial"
this is working fine but apart from the issueType Demand, we have issueType user story and this condition works for user story too but this should not happen. we dont want to trigger the condition for user story.
any guidance will help to restrict this.
Hi @Manoj ,
have you tried to use round brackets?
issue.get("issuetype")?.name == "Demand" && (issue.get("priority")?.name == "3-Major" || issue.get("priority")?.name == "4-Minor" || issue.get("priority")?.name == "5-Trivial")
@Hana Kučerová Hello, yes i did but got the error below:
Error :
This page can't be displayed. Contact support for additional information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hm, strange... What about
issue.get("issuetype")?.name == "Demand" && issue.get("priority")?.name in ["3-Major", "4-Minor", "5-Trivial"]
Thank you.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.