Hello everybody,
I have some doubt about Jira x Kanoah:
My scenario is as follows:
- I have an issue (requesting tests) open on JIRA
- by accepting this issue, I want to check if there is already a test Plan created in Kanoah and its test cycles (tests cases...)
- if it exists, I would like to link to this issue
- if not, I would like to create using specific fields from JIRA (customFields)
I was thinking of using Groovy Script and "com.kanoah.testmanager". But I´m not how to start it?
Do you have some idea?
Thanks in advance.
Hi everybody,
I´m executing the code below (on Script Console):
def client = new RESTClient( 'http://X.Y.Z.W:8080/' )
def resp
try {resp = client.get( path : '/rest/atm/1.0/testplan' ,
query:[
"key": "JIRA-P1"
])
} catch (e) {
log.error e.response.status
log.error e.response.data
}
And the result is:
2018-09-20 16:14:27,655 ERROR [runner.ScriptRunnerImpl]: 500
2018-09-20 16:14:27,656 ERROR [runner.ScriptRunnerImpl]:
*********************************
Executing the REST by curl command we got:
curl -u user:pwd -i -X GET http://X.Y.Z.W:8080/rest/atm/1.0/testplan/JIRA-P1
HTTP/1.1 200
X-AREQUESTID: 890x52096x1
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-ASEN: SEN-2391681
Set-Cookie: JSESSIONID=8B56682B1553DBE09DEE;path=/;HttpOnly
X-Seraph-LoginReason: OK
Set-Cookie: atlassian.xsrf.token=B-MRN-F4-AWWC|8473a80a8a04229723f4asasa64c4499|lin;path=/
X-ASESSIONID: xvj54e
X-AUSERNAME: user
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 20 Sep 2018 17:50:25 GMT
{"updatedBy":"user.test","comments":[],"updatedOn":"2018-06-29T19:59:19.933Z","createdOn":"2018-06-29T19:47:05.109Z","objective":"Related to test","projectKey":"TEST","folder":"/[TEST-9600]","createdBy":"test.test","issueLinks":[],"name":"[TEST-9600] JIRA Test","testRuns":[],"key":"JIRA-P1","status":"Approved
Do you have any idea, how can I get the values from Kanoah Test Plan?
Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.