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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 7 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

33 views 0 3
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