feat(jira): Add badges to issue glance #29899
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add an indication of whether or not there is a linked issue on the Jira issue glance view. I chose to hard code it as 1 since we do not currently show details of more than 1 issue even if more than 1 are linked, and figured it'd be a weird experience to see "2" and then click and only see details for 1 issue. When we get around to showing details for more than 1, this can be updated to use the actual count. If there are no linked issues, the badge simply doesn't show rather than showing 0.
Note: I have both a local Jira installation and prod Jira installation, so the top one where it says "linked kitties" is the local one that reflects this change, it's just easier to differentiate.
References:
https://developer.atlassian.com/cloud/jira/platform/modules/issue-glance/
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-properties/#api-rest-api-3-issue-issueidorkey-properties-propertykey-put