Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I know if I have access to ZAPI?

Chandan Gupta February 25, 2019

Hi,

My team have been using Jira+Zephyr but for some reason I cannot make any zapi calls. I get the error:

java.lang.NullPointerException
at com.atlassian.logging.log4j.FilteredPatternLayout.formatStackTrace(FilteredPatternLayout.java:345) [atlassian-logging-2.15.jar:?]
at com.atlassian.logging.log4j.FilteredPatternLayout.format(FilteredPatternLayout.java:330) [atlassian-logging-2.15.jar:?]
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:310) [log4j-1.2.16.jar:?]
at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:276) [log4j-1.2.16.jar:?]
at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) [log4j-1.2.16.jar:?]
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) [log4j-1.2.16.jar:?]
at com.atlassian.jira.logging.JiraHomeAppender.doAppend(JiraHomeAppender.java:206) [classes/:?]

I don't know if my org needs a licence to use the Apis. How do one know that?

Looking at the About section of Zephyr Test plugin, I get the the following:

Zephyr for Jira - Test Management Data Center for Jira Software (Data Center) 3000 Users: Commercial Term License

2 answers

1 accepted

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 25, 2019

Hello,

It must be installed in your instance (add-ons -> manage apps) and you must have a valid license for it. It is not a free add-on.

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 25, 2019

ZSF Importer uses only one rest api method  from ZAPI to create test steps, and this single rest api method is open and free of charge.

Chandan Gupta February 25, 2019

@Alexey Matveev  Interesting!! This answered my question. I was about to explore the source code from the repo to check if I can achieve what I wanted to. But things are cleared now. Thanks again!

0 votes
Chandan Gupta February 25, 2019

Thanks @Alexey Matveev . Yeah it seems I don't have licence to that. However, I am little confused as I am able to use ZFJ Importer Utility which doesn't require zapi and I have success using it. If I can add/import Testcases using the tool which internally uses my creds to call the APIs, I am wondering why Zephyr has restricted a user from firing the apis directly(without licence). 

I am trying to add execution result automatically against a test case but I don't see a solution rather than doing it manually. Do we have any alternative? 

Suggest an answer

Log in or Sign up to answer