question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to create issue due to additional required fields

See original GitHub issue

What it should do

Find required fields, and allow inputting required ones

What it does

Fails to create a new issue because some fields are required for new issues on our Jira projects.

Other Info

After looking into the Jira API a bit, the expand query string can be set to get all fields on an issue type. However, with many projects this can be massive. I would suggest waiting to fetch a more detailed set of metadata until after the user has selected the project at the very least, maybe even better to wait until they have selected the type. The request can then be filtered down by project name and issue type to limit the returned data (see https://docs.atlassian.com/software/jira/docs/api/REST/8.1.2/#api/2/issue-getCreateIssueMeta)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
allout58commented, Jul 28, 2019

Here is an example of the types for the project I found this issue on originally.

["issuetype","array","string","project","option","timetracking","any","date","user","priority","issuelink"]

It looks like just strings should be okay, as my guess is all of these would have to be typed as strings for the JSON request anyways.

0reactions
miguelmichcommented, Jul 25, 2019

@allout58 that sounds good, and it’s supported by commander, now I’m thinking about the data type, is it always text?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Issue with Required fields - Jira - Atlassian Community
1 answer · Go to Jira Settings > Issues > Screens · Go to the screen used for the create issues operation for...
Read more >
Cannot Create an Issue With +Next Issue (+Sub-Issue ...
If the initial creation of an issue has failed, you don't have to lose the entered data. Just add the required fields and...
Read more >
Can't create Issue with required Custom Fields - Bitbucket
Hey,. i have got a Problem while creatin an Issue via Rest API. Error is: "Could not find custom field with name 'Cause...
Read more >
Create a custom field in Project - Microsoft Support
Screen shot of Project showing Add column header and New field option. Choose a field Type: ... You can't create formulas using custom...
Read more >
Manage Custom Fields | YouTrack Server Documentation
As a project administrator, you can add new fields for the issues in your ... Define the set of values after you create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found