Skip to content
Versora

Manual

Issues

Starting work on an issue

6 min read

On this page

"Start work" turns an issue into a working branch in a single step. Versora suggests the branch name from the repository's template (for example, feature/123-fix-login), starts from the right base (the Gitflow develop or the project's default branch), can fetch first to start from the latest version and does the checkout. On the server, it can assign the issue to you and mark it as in progress.

Since the branch name references the issue, the app then recognizes the branch's issue: it appears in the changes panel and goes into the commit and the merge request. See Branch issue and reference in the commit.

Opening "Start work"

Where to find it

  • ISSUES section: double-click an issue, or right-click › Start work….
  • Palette (Ctrl+P): "Start work on an issue…" (detail: "Creates the issue's branch (GitLab)"). Opens the issue search.
  • After creating an issue through the app: the notice "Issue #130 created: …" has the Start working… button.

The palette command opens the Start work on an issue window, with a search field ("Search GitLab by number, title, label or assignee").

  • The issues assigned to you come first.
  • ↑ and ↓ choose, Enter opens "Start work" for the issue and Esc closes.
  • When the local list doesn't have everything, the search goes to the server ("Searching the server…").

The "Start work" dialog

The top of the dialog shows the issue (key, title, state) and a button to open it in the browser (tooltip: "Open #123 in the browser").

Step by step

  1. Open "Start work" for the issue (for example, #123 Fix login form validation).
  2. Check the Branch name. It already comes filled in from the template and selected, so you can type another one over it.
  3. Choose the Source branch, if the suggested one isn't right.
  4. Check or uncheck the options (fetch first, checkout, assign, in progress).
  5. Click Create branch and start.
  6. The final notice sums up what happened, for example "#123: branch feature/123-fix-login created, assigned to you, label "Doing"."
OptionWhat it doesDefault
Branch nameName of the new branch. It comes from the repository's template; you can edit it.from the template
Source branchWhere the new branch starts from. The list combines the local branches and those of the integration's remote.the Gitflow develop, otherwise the project's default branch
Fetch origin first and start from the latest versionFetches the remote before creating and starts from the remote branch (for example, origin/main).on
Check out the new branchSwitches to the created branch.on
Assign the issue to meOn the server, adds you to the issue's assignees.on
Mark as in progress with the label (GitLab and GitHub)Adds the label entered next to it to the issue, without touching the other labels.off; label Doing
Change the status with the transition (Jira)Applies the transition chosen in the list (for example, "Start → In Progress").on in Jira, with the "in progress" transition

The app remembers, per repository, the fetch, checkout, assign and in-progress choices, the label and the Jira transition used last time.

The branch name from the template

The template is in Preferences › Issues › Branch name template and accepts these fields:

FieldBecomesExample
{type}the issue typebug
{number}the issue number123
{key}the key (123 on GitLab and GitHub, PROJ-123 on Jira)PROJ-123
{title}the title in lowercase, without accents, with hyphens, up to 50 charactersfix-login-form-validation

The Portuguese ({tipo}, {numero}, {chave}, {titulo}) and Spanish ({clave}) field names work too, and a saved template keeps working after you change the interface language.

Without a custom template, the defaults apply, shown with the interface language's names:

  • GitLab and GitHub: feature/{number}-{title} (example: feature/123-fix-login);
  • Jira: feature/{key}-{title} (example: feature/PROJ-123-fix-login), because it's the key in the name that links the branch to the issue in Jira.

With Gitflow initialized, a template that starts with feature/ replaces that beginning with Gitflow's feature prefix (for example, feat/). The note below the field says which template applied: "Template: feature/{number}-{title} (with the Gitflow feature prefix: feat/) — change it in Preferences › Issues."

The whole name is at most 100 characters long, cut at the last separator. If nothing is left, the name becomes issue-123.

The new branch's base

The Source branch suggestion follows this order:

  1. the base the repository's flow preset calls for, when there is one (see Branch hygiene and workflow);
  2. the Gitflow develop, marked in the list as "develop (Gitflow develop)";
  3. the project's default branch on the server, marked as "main (project default)";
  4. the branch the remote's HEAD points to, or main, master or develop.

The note "The new branch starts from origin/main and doesn't track that branch." shows the exact starting point. If your local main has commits that aren't in origin/main yet, the app warns that they won't go into the new branch.

When the branch already exists

If a branch with the chosen name already exists, the dialog warns "A branch named feature/123-fix-login already exists. You can check it out (nothing is created) or change the name." The button becomes Check out feature/123-fix-login, and the base, fetch and checkout options disappear. The server options (assign, in progress) still apply.

What Versora does in git

With fetch first and checkout (the default case):

bash
git fetch --prune --tags origin
git checkout --no-track -b feature/123-fix-login origin/main

Without checkout:

bash
git branch --no-track feature/123-fix-login origin/main

--no-track keeps the new branch from tracking the remote main: its first push publishes a branch of its own on the remote (see Push). With the branch already existing, the app only runs git checkout feature/123-fix-login.

Uncommitted changes are carried over to the new branch; the dialog warns when there are any.

On the server, after the branch:

  • GitLab: adds you to the assignees and adds the label (without removing the other labels; GitLab creates the label if it doesn't exist);
  • GitHub: adds you to the assignees and the label to the issue;
  • Jira: assigns the issue to you and applies the chosen transition.

How to undo

Ctrl+Z undoes the branch creation ("Create feature/123-fix-login"): the branch is deleted and the checkout goes back to the previous branch. For a branch that already existed, it undoes the checkout.

What was done on the server doesn't come back with Ctrl+Z: the assignment, the label and the Jira transition stay on the issue. Undo them from the issue page, if you need to.

Caveats and messages

  • "The branch wasn't created (see the notice).": the creation failed; the reason is in the error notice (for example, the base no longer exists).
  • "feature/123-fix-login wasn't checked out (see the notice).": the checkout of the existing branch failed, usually because of conflicting local changes.
  • "#123: branch feature/123-fix-login created, but GitLab wasn't updated. …": the branch was created, but the assignment or the label failed on the server. The reason comes at the end of the notice.
  • "That isn't a valid branch name (no spaces, "..", "~", "^", ":", "?", "*", "[" or "")." and "Enter the branch name.": fix the name.
  • "Couldn't read the transitions: …": Jira didn't return the issue's transitions; the option to change the status is turned off.
  • "(no transitions available)": the Jira workflow doesn't allow any transition from the current status.
  • "Jira didn't apply the transition: it may require fields that only the issue page shows.": the transition asks for required fields. Do the transition from the issue page.
  • "GitLab didn't report the token's user; couldn't assign the issue.": the server didn't say whose token it is; the issue wasn't assigned.

See also