Change states another issues

My issues have a custom field - state (new, run, pause, close).

Can i get all issues, assigned to the user whith state run?

For example pause all another issues in all projects, when issue run
5 comments
Comment actions Permalink
Hi Vitaliy,

To output all issues with state Run assigned to the user you may use following query:
#run #<username>
prettyPrint();
But example you actually mentioned doesn't clarify the case. Could you please provide more details?
0
Comment actions Permalink
Hi Vitaliy,

To output all issues with state Run assigned to the user you may use following query:

  1. run #<username>


But example you actually mentioned doesn't clarify the case. Could you please provide more details?


I want the user at any one time only worked on one issue. If he forgot to change the status of a old issue on the "pause", and start the second issue, the workflow would change the status of the old issue on the "pause" automaticaly.

example:

 when State.becomes("Start")
{

// get all issues, but not this issue whith State Start and change to Pause. How?

}
0
Comment actions Permalink
How the function loggedInUser.getIssues(Everything, <query>) works?
0
Comment actions Permalink
i found

for each notMyIssue in loggedInUser.getIssues({savedSearch: Reported by me}, "for: -me") {
  notMyIssue.Assignee = loggedInUser;
}

I think the question is closed
0

Please sign in to leave a comment.