marc0l92 / obsidian-jira-issue

This plugin allows you to track the progress of Atlassian Jira issues from your Obsidian notes.
https://marc0l92.github.io/obsidian-jira-issue/
GNU Affero General Public License v3.0
242 stars 39 forks source link

[Feature] Service Desk API #79

Open SimFre opened 1 year ago

SimFre commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to see support for tickets where I only have access to the ticket via Jira Service Desk, so in a space where I'm not an agent. Useful in environments where multiple projects are used, and users are not agents in all of them.

Describe the solution you'd like

  1. Automatic try; if Jira API says error 403, try the Jira Service Desk API (endpoint /rest/servicedeskapi/request/ABC-123)
  2. Manually define. Example JIRA:ABC-123 for regular tickets and JIRASD:ABC-123 for Service Desk API.

Describe alternatives you've considered Manually list ticket information.

marc0l92 commented 1 year ago

It will be difficult to work on this functionality without some testing. Do you know any open Jira project that I can use to test my implementation?

Currently I use the api of those servers to test the plugin: https://issues.apache.org/jira https://bugs.mojang.com https://jira.atlassian.com

Are you able to find any issue that is accessible with the service desk api ?

SimFre commented 1 year ago

I set up an instance on Jira Cloud at Atlassian, and it came with a few tickets pre-filled.

  1. GET to https://throwaway.atlassian.net/rest/servicedeskapi/request/
  2. response.values[].issueKey is example of the Jira ticket (EX-2 in this case).
  3. GET to https://throwaway.atlassian.net/rest/servicedeskapi/request/EX-2 will pull out all the public case details. Like response.requestFieldValues[label='Summary'] for the topic, and response.currentStatus.status for the status text.

JiraSD_EX-2_response.json JiraSD_response.json