Implement display of JSM approval history in the shared page

Description

Integrate the Jira Service Management approval history into External Share by fetching data from the REST API endpoint:
{{GET /rest/servicedeskapi/request/

{issueIdOrKey}

/approval}}.

Display the approval history under the activity tab next to comments, work logs, and changelog.

Media

image-20240430-105117.png

Display of approval history on JSM depicted above.


Accepted criteria

  • Display the approval history effectively within External Share under the activity tab.
  • Ensure the approval history is positioned correctly alongside comments, work logs, and changelog.

Linked issues

relates to
Issue Type Icon SUP-726 Jira Service Management - "Affected services" field not shareable Priority: Medium
Closed

Activity

Automation for Jira 31 October 2024, 13:55

Hello @Daniel Siara,

Please merge code to dev branch.
This is the best moment to add more information that can be helpful to prepare release notes.

  • Can you prepare short overview of change that can be used in release notes?

  • Please provide short GIF that showcase feature.

  • If GIF make no sense, can you provide image that highlights feature that can be used in release notes (cropped & annotated)?

Polina Naumenko 31 October 2024, 13:55

Task verified - QA env

No request type:

image-20241031-135408.png
image-20241031-135348.png

Request type:

image-20241031-135501.png
image-20241031-135427.png
Polina Naumenko 29 October 2024, 10:01

Once Request type is set, Approval history is visible

image-20241029-100147.png

When Parent permission is restricted, View approval is not possible

image-20241029-101022.png
Polina Naumenko 25 October 2024, 09:38

Parent config - Approval enabled

but there is an issue with a share

image-20241025-093510.png

image-20241025-093440.png

The issue was identified:

When Request type is not being set, we won't receive data from api

image-20241029-095933.png
Daniel Siara 21 October 2024, 08:47

@Polina Naumenko Anticipating your questions, we are not able to get the approve date of a particular person. Atlassian in its API displays only the given creation approval and the date of its completion without partial approvals

image-20241021-084422.png
Automation for Jira 21 October 2024, 08:40

Hello @Daniel Siara

This is the best moment to add more information that can be helpful for tester.

  • What areas are affected?

  • What are potential edge cases?

  • Was it checked for XSS problems?

  • Does change affect security, is new data exposed?

Please attach - Before / After screenshot if possible.

Mariusz Szymański 17 October 2024, 08:38

@Daniel Siara Approved

Daniel Siara 15 October 2024, 09:04

@Mariusz Szymański changes applied

Daniel Siara 8 October 2024, 14:21

@Mariusz Szymański please take a look

Automation for Jira 8 October 2024, 14:20

Hello [~accountid:],
Task is ready for review.

@Daniel Siara please make sure reviewer
have easy access to contend to be reviewed.

If this is code change. Please make sure PR is created.
If this is new documentation, blogpost, etc. Please provide link to page.