Hi,
Im triying to set up testlink with Jira via jirasoap
But default BUG_TRACK_ENTER_BUG_HREF = secure/Dashboard.jspa?os_destination=%2Fsecure%2FCreateIssue%21default.jspa
gives me an error
java.lang.IllegalStateException: Cannot forward after response has been committed
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:312)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.dispatchView(JiraWebworkActionDispatcher.java:285)
at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
But changing it to /secure/CreateIssue.jspa?issuetype=1&Create=Create
Redirects you to this page, I dont know if its the original intended behaviour:
Btw I reported the error page to Jira's Jira, all they said is they dont support Testlink
They finally gave me a real answers, seems I was on the right way:
I am suspecting the URL to be invalid as the exception raised is an invalidstateException which means that the JSP code is trying to forward after it has already starting writing the output to the client. You may want to have a look at the following forum contributions regarding this exception:
BUG_TRACK_ENTER_BUG_HREF should read: secure/CreateIssueDetails!init.jspa?pid=10000&issuetype=1
where:
- pid is your Project ID (in Jira, look it up in the database)
- issuetype is something valid (by default, issuetype 1 is bug, what is probably OK)
... you can optionally add any other key/value pairs for fields you like to fill by default
pid and isuetype are mandatory when creating an issue, as is a valid session with Jira (you'll get the logon screen when you haven't).