Trying to itterate through all issues assigned to specific user
These if statements don't seem to trigger. Does anyone see any reason why?
openIssuesCount and InProgressIssuesCount always equal 0, but I know there are issues in these states.
I tried comparing i.State to the following
None of these works.
var uIssues = u.getIssues(Everything,"Assignee:Scott");
var openIssuesCount = 0;
var InProgressIssuesCount = 0;
for each i in uIssues {
if (i.State == {Open} ) {
openIssuesCount=openIssuesCount+1;
}
if (i.State == {In Progress}) {
InProgressIssuesCount = InProgressIssuesCount + 1;
}
}
openIssuesCount and InProgressIssuesCount always equal 0, but I know there are issues in these states.
I tried comparing i.State to the following
- {State: Open}
- "Open"
- {Open}
None of these works.
Please sign in to leave a comment.
- message("State: " + i.State.name); - it'll show the message on the full issue screen for the stateless rule/state machine
- debug("State: " + i.State.name); - it'll print the message to the youtrack.log/workflow.log for all kind of rules