Clicked Issues Link Not Working in ViewIssueModal (@forge/jira-bridge)

XMLWordPrintable

    • 5
    • Minor
    • 20

      Summary

      When displaying an issue using the ViewIssueModal component from @forge/jira-bridge, clicking on the parent issue link (located at the top left of the modal) or on Subtasks or Linked issues parent  does not perform any action. The expected behavior is that clicking this link should navigate to or display the parent issue.

       

      Obs: Probably this bug affects any issue key that may show up in the modal. 

      Steps to Reproduce

      1. Use the ViewIssueModal from @forge/jira-bridge to display a Jira issue that has a parent (e.g., a sub-task).
      2. In the modal, locate the parent issue link at the top left or add a subtask or linked issue on the middle area of the modal.
      3. Click the parent issue link, linked item, or subtask.

      Expected Result

      • The new clicked issue should be opened in a new tab, similar to what happens if we click the issue link in the top left.

      Actual Result

      • Clicking the new clicked issue link does nothing; there is no navigation or feedback. For linked items and subtasks, it opens the issue in the background instead of opening in the modal.

      Sample Code

        const openViewIssueModal = async () => {
          const viewContext = await view.getContext();
      
          const viewIssueModal = new ViewIssueModal({
            onClose: () => {
              console.log('ViewIssueModal closed');
            },
            context: {
              issueKey: viewContext.extension.issue.key,
            },
          });
      
          viewIssueModal.open();
        };
      

              Assignee:
              Unassigned
              Reporter:
              Nashid Farhad (Inactive)
              Votes:
              27 Vote for this issue
              Watchers:
              25 Start watching this issue

                Created:
                Updated: