We're trying to mass import tickets from another ticketing system, but I can't for the life of me figure out how to map to a 'Request Type' within JSM.
What does it take to get this field to populate using a JSON import?
I've tried many combinations of using field[], customFieldValues[], customfield_10010: but I can't get anything to actually work.
Hello,
I'm going to consolidate my findings and what I did in this answer.
First of all, to import a custom field we need to know its type. There's an API that retrieves the fields that are available in the Jira cloud instance. If you're logged in to your Jira instance on a browser, then you can simply go to https://{instanceName}.atlassian.net/rest/api/3/field, which will return a JSON list of fields.
If we search for the "Request Type" field we get:
From that we need two things:
Now, we can construct our sample JSON import file:
{
"users": [
{
"name": "user1",
"email":"john.doe@mydomain.com"
}
],
"links": [],
"projects": [
{
"key": "PJK",
"issues": [
{
"externalId": "OLD-123",
"summary": "Test ticket",
"description": "This is a ticket description",
"reporter": "user1",
"status": "Resolved",
"resolution":"Resolved",
"issueType":"Bug",
"components": [
"Component 1"
],
"created": "2025-11-12T12:34:02.987+0200",
"updated": "2025-11-13T15:12:43.458+0200",
"assignee": "user1",
"history": [
{
"author": "user1",
"created": "2025-11-13T15:12:43.458+0200",
"items": [
{
"fieldType": "jira",
"field": "status",
"from": "1",
"fromString": "Open",
"to": "5",
"toString": "Resolved"
}
]
}
],
"customFieldValues": [
{
"fieldName": "customfield_10200",
"fieldType": "com.atlassian.servicedesk:vp-origin",
"value": "22"
}
],
"comments": [
{
"body": "We've started working on this request",
"author": "user1",
"created": "2025-11-12T12:41:31.125+0200",
"properties":[{"key":"sd.public.comment","value":{"internal":"false"}}]
}
]
}
]
}
]
}
Notice how in the customFieldValues array I created an object with the following mapped fields:
To get a sample value for the custom field:
Hope this helps!
wow, it helped a lot. such a life savior! thanks man.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is brilliant! A perfect, complete solution. Thank you for this miracle!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
welcome to the community and thanks for your question.
You were almost their with your past tries, but the input value is a little more complicated.
It is a regular custom field like "customfield_10202", but the value is a combination of the project key and the request type name, like so: "its/getithelp"
A detailed guide to get these values can be found here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I needed the same idea as you and I found the solution to your question. I know this is more than a year late, but this is the field type the you need to update your Custom Request Type Field
"fieldType": "com.atlassian.servicedesk:vp-origin",
For reference, you can find this information under your inspect page and then find
It's been more than a year, but I hope this answer finds you and it helps you.
Cheers,
Francis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Francisco, how are you?
I am experiencing the same problem.
Could you provide more detail about your solution you found? I'm sure I will find it very useful
Regards
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.