Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closing issues? #24

Open
seansan opened this issue Aug 21, 2020 · 1 comment
Open

closing issues? #24

seansan opened this issue Aug 21, 2020 · 1 comment
Assignees

Comments

@seansan
Copy link

seansan commented Aug 21, 2020

when trying to close an issue there is no method like create? or do we use edit?

an example would be cool

@SAnCherepan
Copy link
Contributor

YouTrack issue is considered closed when it's State is resolved.
In a single project multiple states can be marked as resolved (Done, Duplicate, Canceled and so on) and so there is no way to close an issue automatically.

Let's say your final state is Done and your project does not have a state-machine rule in your workflow (i.e. transitions from any state to any state are allowed).
Then the operation would be as simple as issue["State"] = "Done" or connection.execute_command(issue_id="<issue_id>", command='State Done').

Now if your workflow only allows to go to Done only from In progress and your target issue is New, then you would have to execute multiple operations and transition through your workflow, same as you would in web UI.

Let me know if you have any further issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants