Following up on my previous question where I was given the following example:
if
(argv[
"screen"
] ==
"create-subtask"
&& argv[
"issueType"
] ==
"Sub-task"
)
How would I apply it to multiple issue types? Can I use "contains" or an array variable in place of the ==?
Thanks!
Hi Brian,
Yes, you can use contains routine.
A simple example would look like this:
string[] issueTypes = {"Bug", "Task"}; if (contains(issueTypes, argv["issueType"])) { lfGlobalMessage("yes", "INFO"); } else { lfGlobalMessage("no", "INFO"); }
Hope this helps,
Alexandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.