How should I handle required JIRA custom fields when creating issue from testlink

I have a working integration between JIRA and Testlink. I am able to attach existing defects from JIRA to testlink test executions.

however when I try to create a new defect I get the following error

"addIssue:Failure:JIRA Message: customfield_10051 => Severity is required."

I have a severity field for a issue type "Bug" in JIRA that is mandatory.

I have tries to add this to the configuration in testlink as follows. it did not work.

Please advice.

 

<issuetracker>
<username>userid</username>
<password>password!</password>
<uribase>ourserver</uribase>
<uriview>ourserver/issue/</uriview>
<userinteraction>1</userinteraction>
<projectkey>OBJY</projectkey>
<issuetype>1</issuetype>
<attributes>
<customFieldValues>
 <customfield>
  <customfieldId>customfield_10051</customfieldId>
  <type>Select</type>
  <values><value>Wrong Behavior</value></values>
 </customfield>
</customFieldValues>
</attributes>
</issuetracker>

 

 

4 answers

I am using REST interface

Can you check the definition of your customfield 10051 (Severity) to see if it is restricted to a specific set of values. 

The normal behaviour for Severity is that it is a select from a list of options. Your request should therefore match one of these predefined options.

Did you get any solution for this? We also have Severity as a custom field with a list of values and I need to pass the value while creating a bug.

Hello

Your request was solved? Please share the information with us?

 

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

938 views 5 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot