Integrating external service with Jira

Priyanka sawant July 6, 2023

Looking for ability to create project, epic, task  and subtask in Jira from my service. Need some guidance on how to proceed. Unable to find docs related to APIs for creating the above. Found this https://developer.atlassian.com/cloud/jira/platform/index/#using-the-apis 

2 answers

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 6, 2023

Hi @Priyanka sawant,

Welcome to Atlassian Community!

You can find all the Cloud APIs here, https://developer.atlassian.com/cloud/ and the end points you are looking for can be found here:

Create project 

Create issue (creating the different issue types uses the same end point, you just have to specify the type in the call).

Priyanka sawant July 6, 2023

Thank you this is helpful. 

Priyanka sawant July 6, 2023

Can I create an Epic, then a story within an epic and then a subtask within the story using just the Create issue API?  

I want the following hirarachy:

 

Project -> Epic -> story -> subtask 

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 6, 2023

You could, but you need to know the issue key of the epic in order to do it. So after you created the epic you need to find the it's issue key before you can create the story, and the same thing would apply to the sub task.

You could do this using automation, so after the project has been created the rule could trigger and create the epic, story, and sub task.

Priyanka sawant July 7, 2023

Also, had another question. 

I have an app and want to create jira issues from my app. For this which is the preferred method for authentication?

 

Basic Auth? or creating an app using forge or OAuth which will act as an underlying layer for my app ? 

 

I am think of using basic app but getting confused as the doc points me back to Forge for secure

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 7, 2023

You can use basic auth, just create an API key for the account you want to use to create the issues and then encode64 user@email.com:api_key and use that as your authentication.

Priyanka sawant July 7, 2023

With that will I be able to call Jira APIs on behalf of my customers? I am looking for a secure way to allow my customers to create Jira issues from my App on their respective Jira accounts. What client info will I need to call Jira APIs on users behalf?

 

Priyanka sawant July 7, 2023

m basically looking for a Jira client I can invoke on behalf of customer and call Jira APIs. I am trying to understand authentication model between the two. 

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2023

This is what I would do, I would use a service account that you created an API token for and use that in your app. Then the only information you need from the customer is their email and you can use that to get their user Id which you can then use in the API call and raise the request on behalf of the customer.

0 votes
Priyanka sawant July 11, 2023

-

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events