Forum Discussion

nisgupta's avatar
nisgupta
Valued Contributor
4 years ago

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

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

     

      • hkim5's avatar
        hkim5
        Staff

        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);