Issue in creating epic and feature using REST API

Madhura Lodam October 15, 2023

I am facing issue in creating feature and program epic  below are the details:

Input:

{
    
    "fields": {
        "project": {
            "id""102",
            "key""AK" 
        },
        "summary""JIRA OAUTH POC TESTING- issuetypes-feature",
        "issuetype": {
            
            "name" : "Feature"
        },
        "assignee": {
            "name""user@domain.com"
        },
        
        "description""testing Jira Rest endpoints",
        "duedate""2023-10-28"
       
        
    }
Output:
{
    "errorMessages": [],
    "errors": {
        "issuetype": "The issue type selected is invalid."
    }
}
same way it responds when I use issuetype as "Program Epic"
"issuetype": {
            
            "name" : "Program Epic"
        }
Even if I send id in issuetype , I am getting the same error response. 
Can you please help troubleshooting the above impediments?

Thanks,
Madhura

2 answers

0 votes
Rachit Singhal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 16, 2023

Hi @Madhura Lodam ,

 

Can you please confirm if the issue type that you are selecting is in the scope of the project where you are trying to create the issue and your project type, is it team-managed or company-managed?

 

Additionally, can you please check if any condition/validator are mapped to the "Create" transition of the workflow associated with the issuetype that you want to create?

Madhura Lodam October 26, 2023

Hi @Rachit Singhal ,
Thanks for your response. 
Yes the issuetype I am selecting is in the scope of the project where I am trying to create the issue.

There is no condition/validator mapped to create transition of the workflow associated with the issuetype that I want to create.

The issue still exists. Can you please guide and suggest what can be done here?

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 16, 2023

Hi @Madhura Lodam 

It might be that you are running into the issue that relates to using the same named issue type in Team and Company managed issue types.

See: https://jira.atlassian.com/browse/JRACLOUD-75176 

IT might, otherwise check that the issue of the types you want to make are on the project AK

Madhura Lodam October 26, 2023

Hi @Marc - Devoteam 

Thanks for your response.

The project has access to the specified issuetype , I am able to create the same issuetype under the same project manually but not through the rest api.

Can you please suggest what must be going wrong?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events