Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How could I set custom field for test plan when I create it?

Dana Syzdykova August 3, 2020

Hello!

I use tm4j v6.7.2 and I want to create TestPlan with custom fields.

But when I try add smth there (in creation request) - server answers that

The custom field <field name> was not found.

 Also I have tried fields mentioned in documentation https://support.smartbear.com/tm4j-server/api-docs/v1/

like

// Simple request, using only required fields
{
  "projectKey": "JQA",
  "name": "Plan for a new version"
}

// Simple request, using custom fields
{
  "projectKey": "JQA",
  "name": "Plan for a new version",
  "customFields": {
    "single choice": "Propulsion engines",
    "multichoice": "Brazil, England",
    "checkbox": "false",
    "datepicker": "2017-03-02T16:15:00.000Z",
    "decimal number": 12.12,
    "number": 100,
    "multi line text": "<h1>Plan for a new version</h1><p>Ignite the secondary propulsion engines</p>",
    "single line": "Ignite the secondary propulsion engines"
  }
}

// Full request
{
  "projectKey": "JQA",
  "name": "Plan for a new version",
  "objective": "The objective.",
  "folder": "/Orbiter/Cargo Bay",
  "status": "Approved",
  "owner": "vitor.pelizza",
  "labels": ["Smoke", "Functional"],
  "issueLinks": ["JQA-123", "JQA-456"],
  "testRunKeys": ["JQA-R123", "JQA-R456"],
  "customFields": {
    "single choice": "Propulsion engines",
    "multichoice": "Brazil, England"
  },
}
 

 

So, How could I set custom field during testplan creation (or after)? 

May be anyone knows how to "mark" testplan? I need smth like labels 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Katy Kelly
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2020

Hi Dana,

We recommend moving this question and tagging SmartBear on it as Adaptavist no longer owns Test Management for Jira. Learn more.

Please direct your TM4J Server/DC queries to tm4j-server-support@smartbear.com or TM4J Cloud queries to tm4j-cloud-support@smartbear.com. You can also visit their general support portal

Kind regards,

Katy

Adaptavist Product Support 

TAGS
AUG Leaders

Atlassian Community Events