I'm having a lot of trouble importing JSON data which needs to include values for custom fields. The ids and types of the custom fields are already defined, but the JSON import ignores them.
"issues": [
{
"key" : "TEST-1",
"summary" : "Summary text goes here",
"customfield_10082" : "Some text"
}
]
I know it's possible to add custom fields with this format
"customFieldValues": [
//Custom Fields which accepts single values:
{
"fieldName": "My Awesome Text Field (single line)",
"fieldType": "com.atlassian.jira.plugin.system.customfieldtypes:textfield",
"value": "some text"
},
But this creates completely new custom fields. It doesn't populate any that have already been defined.
Hello,
Try to add the custom field on the create and edit screen and have a look.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the type of your custom field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried text and doubles. But it looks like the Json import is not capable of dealing with custom properties in the way I need. A bit of research has turned up reports from others who have hit the same snag.
However, the CSV import function is much more capable. I reworked my process around that and have found that I can do everything that I need to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Has this ever been fixed ?. I am trying to import a new issue via Json and the issue type is Epic, however, I cannot find a way to populate the custom field "Epic Name"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Chunilal I'm in the same situation as @Richard_Phelan was all those years ago, so I don't think this is fixed. The importer simply creates new fields, and I have not found any resouce on how to match the field on id instead of name, or in fact match it at all. My thought right now is to simply skip all the custom fields in the import, and instead add them via the API after creating the issues. Feels quite clunky, but might be worth a shot!
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.
Thanks for your answer. Yes, I have read your answer but it does not seem to work with Jira Cloud.
Following simple json file:
{
"projects": [
{
"key": "OFFER",
"issues": [
{
"issueType" : "Task",
"summary" : "Code Generierung (Sprints)",
"description" : "A description",
"customfield_10056" : "OP279"
}
]
}
]
}
The standard fields are imported but the custom field not. There is no error message or something special in the log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have no experience with the cloud, but I guess you are importing the CF wrongly.
You should do it in the following format:
"customFieldValues": [ { "fieldName": "Story Points", "fieldType": "com.atlassian.jira.plugin.system.customfieldtypes:float", "value": "15" }, { "fieldName": "Business Value", "fieldType": "com.atlassian.jira.plugin.system.customfieldtypes:float", "value": "34" } ]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the same problem.
Checking if the CF is only allowed in a certain context and if editing it is possible in the project solved the problem.
Jira then maps the values to the already existing CF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can I ask what version of Jira you're on? When I tested on Jira Server 8.1.1 (Software) it still created new CF:s.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.