Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,440
Community Members
 
Community Events
184
Community Groups

JIRA REST API call for create issue of issuetype "Minutes"

Edited

why JIRA looks into issue screen of type "BUG" by default while I attempt to create issue of type "MINUTES"?

Our organization has different screens for a bug and a minute.

while calling the create issue rest api call(to create minutes) it expects the fields in the bug.

Is this a bug or am I doing something wrong?

2 answers

2 accepted

0 votes
Answer accepted

My Jira Admin just said they used a common config for issue, minutes and bug. Now they have split it(removed the mandatory field for Brands and Detection) and it works for me now.

0 votes
Answer accepted
Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 08, 2022

Hello @Arjun .

What's the default issue type that is set for your Jira project?

Hello @Robert Wen_ReleaseTEAM_ 

sorry, I'm not aware(where can I check that?). I usually clone a minute during new SW release.

When I tried from rest api call it defaults to bug screen. Also, there is no official version of clone rest call in jira.

Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 08, 2022

In Jira Server, default issue types can be set.  If you don't specify an issue type (like Minutes), it will set the issue type to the default.

Are you setting issue type in your REST call?  It is one of the fields that you can define.

Please see below the request that has issuetype set.

curl -i -v -u user:password --data "{\"fields\": { \"project\": { \"key\": \"ABC\" }, \"summary\": \"My sample mins\", \"description\": \"sample mins\", \"issuetype\": { \"name\": \"Minutes\" }}}" -H "Content-Type: application/json" "https://url.com:123/rest/api/2/issue/"

output

{"errorMessages":["Brands: Brands is required.","Detection: Detection is required."],"errors":{"components":"Component/s is required."}}

The field "Brands" and "Detection" belongs to bug screen and not minutes.

Edit: I just now checked in jira --> project-settings --> screens and see that default is minutes. I could see the "default" tag and below that Minutes is mentioned.

@Robert Wen_ReleaseTEAM_:

when I try to create bug(id - 1) it says custom fields are missing in the  response but when the same is tried with minutes(id - 12), the output has the custom field names(Brands and Detection) instead of 'customfield_xxxxx'. do you think something is wrong in the Jira settings?

D:\scripts>curl -u user:password --data "{\"fields\": { \"project\": { \"key\": \"ABC\" }, \"summary\": \"my sample bug\", \"description\": \"sample bug\", \"versions\": [{\"Affects Versions/s\": \"v1.2\"}, {\"name\": \"v1.2\"}], \"issuetype\": { \"id\": \"1\", \"name\": \"Bug\" }, \"components\": [{\"name\": \"SW_VERSION\"}]}}" -H "Content-Type: application/json" "https://someurl.com:123/rest/api/2/issue/"
{"errorMessages":[],"errors":{"customfield_10393":"Brands is required.","customfield_10142":"Defect Occurrence is required.","customfield_13310":"Detection is required.","customfield_10390":"Relevance is required.","customfield_10322":"Basket is required."}}
D:\scripts>curl -u user:password --data "{\"fields\": { \"project\": { \"key\": \"ABC\" }, \"summary\": \"my sample mins\", \"description\": \"sample mins\", \"versions\": [{\"Affects Versions/s\": \"v1.2\"}, {\"name\": \"v1.2\"}], \"issuetype\": { \"id\": \"12\", \"name\": \"Minutes\" }, \"components\": [{\"name\": \"SW_VERSION\"}]}}" -H "Content-Type: application/json" "https://someurl.com:123/rest/api/2/issue/"
{"errorMessages":["Brands: Brands is required.","Detection: Detection is required."],"errors":{}}

 

Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 09, 2022

@Arjun . You look like you're doing everything right, so I need to ask some specifics:

What version of Jira are you running?

What type of project is this? (Core, Software, Service Desk/Management?)

@Robert Wen_ReleaseTEAM_  Jira Server v8.20.3. This is for Software. We mostly use issue types Bug, Minutes, Task and Sub task. Please hold, as I'm currently checking with my Jira Admin as I get the same error while I attempt to create a minute manually in Jira web.

Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 10, 2022

OK, this makes sense.  Sounds like there was a change in the field configuration that affected the Meetings issue type (perhaps other ones too).

@Robert Wen_ReleaseTEAM_I'm really sorry for wasting your time. My Jira Admin just said they used a common config for issue, minutes and bug. Now they have split it(removed the mandatory field for Brands and Detection) and it works for me now.

Like Robert Wen_ReleaseTEAM_ likes this

Well Done, it seems like the issue has been resolved. 

configuration, debug and needed little brushing to e ready for prime time.

Not much to get it up and running at tip-top shape.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events