Problem creation: test link integration with jira

I have included Testlink with Jira using below xml

<issuetracker> <username>xyz</username> <password>#123</password> <uribase>abc.net/projects/KEY/</uribase> <uriapi>abc.net/rest/api/latest/</uriapi> <uriview>abc.net/browse/</uriview> <projectkey>KEY</projectkey> <issuetype>1</issuetype> </issuetracker> 

I can associate an existing problem with jira in a test link.

But to create a problem window contains the Version field, which will not allow me to enter any value or not to give any suggestions, as shown in the figure below.

Create problem

I tried to create a version in jira, but it does not work.

So,

  • What value should I enter / configure for the version field?

  • What is <issuetype>1</issuetype> ? can we provide any other value?

  • How to link a new field in the problem creation window?

4. The version is not compatible with the jira Version field.

+5
source share
1 answer

I don’t know which version of the JIRA REST API you are using, but the manual for v2 says:

Like everyone else in the real world, we face time and resource constraints. It takes more time to support two serialization formats than one. Therefore, for our initial release of the JIRA REST API, we decided to provide "more stuff in JSON" rather than "less stuff in JSON and XML."

So I'm not sure about XML support. I have no experience with Testlink, but I assume that it uses some kind of serializer on the back.

  • If you check the create problem endpoint, there is no version field. I assume this will be the version field. JIRA projects may have several versions. You can get the list of versions from Get project eversions endpoint.
  • The type of error is the identifier of the type of problem that you want to use for your problem. You can get a list of types of problems specific to a project from Get the release of all types of endpoint. Types of problems
  • I am not sure about that.
  • Check the first point
+1
source

Source: https://habr.com/ru/post/1264954/


All Articles