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?
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.
Hello @Arjun .
What's the default issue type that is set for your Jira project?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Robert Wen_Cprime_
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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":{}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Wen_Cprime_ 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, this makes sense. Sounds like there was a change in the field configuration that affected the Meetings issue type (perhaps other ones too).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Wen_Cprime_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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.