cancel
Showing results for 
Search instead for 
Did you mean: 

TestComplete + Jira Extension - Project Key not found

Highlighted
Super Contributor

TestComplete + Jira Extension - Project Key not found

https://support.smartbear.com/testcomplete/docs/reference/program-objects/jira/createnewbugdata.html

 

I am following the link above. I am getting the error -Project key not found.

One thing We are using the Jira URL without s in http

i.e. http://jira.<companyname>.edu

 

when we use https://jiratest.<companyname>.edu it do not login through script. So i need to remove s from http so now it login. But we are getting another project key not found. We already have the project key .

 

Any update ?

 

Thanks

-Nishchal

13 REPLIES 13
Highlighted
Staff

Re: TestComple + Jira Extension - Project Key not found

can you post some screenshots of your script and your error logs? 

 

Best,
Justin Kim
Highlighted
Super Contributor

Re: TestComple + Jira Extension - Project Key not found

@hkim5 

 

I have attached the screenshot for the scripts. and also error screenshot.

Let me know if you have any questions

 

-Nishchal

Highlighted
Staff

Re: TestComple + Jira Extension - Project Key not found

This might be a stupid question, but it looks like you have two different JIRA server instances, where one is jira.<ur company>.edu and the other is jiratest.<ur company>.edu 

Is it possible that a JIRA project with the project key of ITA only exists within one jira instance and not the other?

It also looks like from your script, you're calling on the jiratest.<urcomp>.edu and that you are specifying the jira project with key SSS. Why is that not reflected in your logs? 

When you call on your jiratest module, is it possible you didnt save your script and that it was using a hardcoded ITA project key value that doesnt exist in your second "jiratest.texastech.edu" environment?

----

And lastly, the only error that I see in your script is in the funciton IssuetoJira() (forgive me I am not too familiar with javascript" is your jiraData.setField("priority", "major") . Priority is a field that requires a json input, so you'd need to use the setFieldJSON method instead where 

 var priorityJSON = '{"name":"major"}';
 var jiraData = Jira.CreateNewIssueData("SSS", "Bug").

//rest of your info here....
//reporter, assignee, summary all using teh setField() method
// and then this
                setFieldJSON("priority", priorityJSON);

 

Best,
Justin Kim
Highlighted
Super Contributor

Re: TestComple + Jira Extension - Project Key not found

@hkim5 

Thank you for Updates.

 

First of all Yes we have to jira instances- one is jiratest.texastech.edu and othe one is jira.texastech.edu. One is test environment and other one is PROD environment. Both the environments has ITA project keys.

 

I was trying with different Project Keys . We do have Project Keys SSS, ITA. Do you want me to submit the script and logs again ?

 

Ok I will update the priority one. Let me update the priority code and will send you screenshot

 

-Nishchal

Highlighted
Super Contributor

Re: TestComple + Jira Extension - Project Key not found

Here is update.

Super Contributor

Re: TestComple + Jira Extension - Project Key not found

We have the project key in Jira Test

Highlighted
Super Contributor

Re: TestComple + Jira Extension - Project Key not found

we do have project key in Jira as well as shown in the attached screenshot.

Highlighted
Super Contributor

Re: TestComple + Jira Extension - Project Key not found

@hkim5 

are there any other functions that we can use to check why project key is not available ?

Highlighted
Community Manager

Re: TestComple + Jira Extension - Project Key not found

Hi @nisgupta! It looks like your code should be correct. These leaves us with two options - either the error is caused by an unsupported version of Jira server or data center, or this might be a bug. The best next step would be contacting support and getting a solution from them. 

Please share the results with us when you have them!


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors