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 Sign up to answer
Community showcase
Published 7 hours ago in Jira Ops

Jira Ops Early Access Program Update #5: Three new ways to get a live Jira Ops demo!

Welcome to your weekly Jira Ops Early Access program update, where we’re sharing news and updates on Jira Ops progress as we work toward our 1.0 release. If you ever want to drop us feedback or ideas...

20 views 0 1
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