Skip to content

Start Work Page: Default Transition is "Closed" for Projects Without "In Progress" #502

@MitchTalmadge

Description

@MitchTalmadge

Describe the bug
The default "Transition issue" selection is "Closed" for all of the issues in my repository. There is no way to change the default to the preferred "Developing" (this is our version of "In Progress"). There is also no way to turn the feature off. This leads to accidentally closing the issue often when beginning development.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Rename the "In Progress" state to "Developing" in your workflow.
  2. Open the "Start work" page for an issue in VSCode.
  3. Observe that "Closed" or some other transition may be selected, instead of "Developing".

Expected behavior
I understand that the extension cannot reasonably read my mind to understand which transition I want to use, and that I am not using the default transition names. Therefore, I am requesting a way to define which transition to use by default via the extension settings. Alternatively, or perhaps in tandem, I would like an option to disable the "Transition to" selector by default.

Environment and Version:

  • Atlassian Plugin Version (3.8.5)
  • Visual Studio Code Version 1.101.2 (Universal)
  • Is this a local or cloud environment?
    • Jira is a cloud instance.
    • VSCode is running on macOS, but is accessing a Debian Linux server via Remote SSH.

Additional context

  • The transition issue toggle is hardcoded to true by default here:

    const [transitionIssueEnabled, setTransitionIssueEnabled] = useState(true);

  • The code which predicts which transition to use is here:

    useEffect(() => {
    // best effort to default to a transition that will move the issue to `In progress` state
    const inProgressTransitionGuess: Transition =
    state.issue.transitions.find((t) => !t.isInitial && t.to.name.toLocaleLowerCase().includes('progress')) ||
    state.issue.transitions.find((t) => !t.isInitial) ||
    state.issue.transitions?.[0] ||
    emptyTransition;
    setTransition(inProgressTransitionGuess);
    }, [state.issue]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    JIRAThis is related to JIRAcloudThis is related to cloud products

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions