Skip to content

Show the parent key in the issue view header - #1019

Open
ChrisJr404 wants to merge 1 commit into
ankitpokhrel:mainfrom
ChrisJr404:show-parent-in-issue-view
Open

ChrisJr404 wants to merge 1 commit into
ankitpokhrel:mainfrom
ChrisJr404:show-parent-in-issue-view

Conversation

@ChrisJr404

Copy link
Copy Markdown

This adds the parent's key to the header when you run jira issue view on an issue that has one, which covers the request in #766.

At the moment there's no way to tell from the view screen whether a ticket is a sub-task or sits under an epic without opening it in the browser. When the issue has a parent I append its key to the first line of the header next to a 👪 marker, e.g. … 🧵 0 linked 👪 EPIC-1. Issues without a parent render exactly as before, so existing output is unchanged.

The GET /issue endpoint already returns the parent field and it's already on the Issue model (used elsewhere by clone/edit), so this just surfaces it in the view. Added a test in internal/view covering both cases. make lint and make test pass.

When an issue has a parent, such as a sub-task or a story under an epic,
show the parent's key in the view header next to a family marker. Issues
without a parent render exactly as before.

Closes ankitpokhrel#766
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant