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
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 issue (creating the different issue types uses the same end point, you just have to specify the type in the call).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.