Importing an issue with a new custom field

Hi JB/Space Support team,

I am importing space issue with java code. I can do a standard issue.
I can define a different custom field. I cannot send a value to the custom field I have just defined.

There is no field for the new custom field "Projects/Planning/Issues/Import Issues" in the HTTP API Playground field.

 

project:
id:
{ metadata:
ImportMetadata
{ importSource:
string
},
issues:
[ExternalIssue]
[
{
summary: string,
description: string? = null,
status: string,
assignee: string? = null,
externalId:string,
externalName: string? = null,
externalUrl: string? = null
},
],
assigneeMissingPolicy: ImportMissingPolicy,
statusMissingPolicy: ImportMissingPolicy,
onExistsPolicy: ImportExistsPolicy,
dryRun: false
}

 

How can I send information from a new custom field to space?

4 comments
Comment actions Permalink

Hello!

Thank you for reaching out to us!

Currently, there is no way to set custom fields while importing issues but they can be set after that via Projects/Planning/Issues/Update Issue endpoint. Also, custom fields are supported with Projects/Planning/Issues/Create Issue endpoint.

Please let me know if you have additional questions!


Margarita Kolotilova
JetBrains
http://www.jetbrains.com
The Drive to Develop

0
Comment actions Permalink

Hallo,

Projects/Planning/Issues/Update Issue
 
Here,I want to add a new boolean custum field.

I want to fill in the field below, but I can't find what to write in the "fieldId" field.
[CustomFieldInputValue]
[{
fieldId: ,
value: BooleanCFValue
{
value: false
} },

Where should I look for the id I need to write here?
 
 
0
Comment actions Permalink

Hello!

Initially, the custom field id is returned as a part of Create Field response. Also, you can check ids of existing custom fields with Custom Fields/Fields/Get All Fields endpoint:

Parameter containerId is project-specific and can be obtained via Projects/Get Project endpoint:

 

Please let me know if you have additional questions!


Margarita Kolotilova
JetBrains
http://www.jetbrains.com
The Drive to Develop

1
Comment actions Permalink

Thanks for the answer.

0

Please sign in to leave a comment.