Has anyone had any success integrating Cherwell with Jira? We have the Jira mApp installed and we're passing data via the REST API. We're running in to some unexpected authentication behavior. Cherwell 9. 1
We've had luck using the JIRA mApp. It gives a pretty good start, but you will probably have to modify it to fit your needs or environment. Right now, we only have it set up to use the button that creates the issue in JIRA, but are looking at ways to expand this functionality.
We are experiencing the same issue. I am currently testing with the send from server set to off at this time. Were you ever able to work past the error on your side?
We are also having trouble posting from the server, which is hosted at Cherwell. But we assume that this is due to settings on Cherwell's side. So if anyone has insight into that, it would be greatly appreciated as well.
In our case Jira was expecting the username:password string to be Base64 encoded, but Cherwell is passing the credentials as plain text.
We worked around it by setting the security type to "None" instead of "Basic", in the webservice. We then defined a header parameter in the webservice method called "Authorization."
In the One Step where we make the webservice Call we set the value for the Authorization parameter with the base64 value. We got this translated value by making the call to Postman (free application - enormously valuable) and looking at the header after it got translated.
It looks something like, "BASIC [long string of random letters/numbers]="
We stuffed this string into a variable so we could just use the variable in the actual webservice calls.
We got confirmation from Chwerwell that this is exactly how they work around this issue when it comes up.
That worked. I setup the password and tested the post functionality using the desktop client and it returned the Jira ID. I tried posting a comment and it gave me a "malformed syntax" error. I noticed that the JSON settings do not include the Jira ID. Did you see something similar?
Aside from that, I now need to figure out why we cant post from the Cherwell server.
I agree with Paul. The mApp works once you've configured it to your environment. I could not get it to work when making the Web service call from Cherwell Server, therefore I have it working without using that since our Jira app is in the cloud. I'm working on automating this so techs wouldn't have to use the Jira button.
In the course of development we've seen both the "malformed syntax" and "Bad request" errors. The syntax error is usually something within the json, the bad request is usually key related. The Jira ID is part of the webservice call and not in the JSON payload.
I did end up seeing the Jira ID in the Jira call but cannot seem to get past the malformed syntax. The JSON variable appears to be setting the value exactly as the Jira on-line example indicates, so I do not see where we can make modifications. How were you able to work past your errors?
We've had problems getting subtasks to go across as well as issues with the text that is passed being too many characters for JIRA.
We use the Swagger tool to test out our JSON. If the JSON works in Swagger but not in Cherwell, the problem isn't with the JSON, if it fails in Swagger, then it's easy to tweak and test until you get it working. We started out by stripping down the objects for the calls we wanted to make to get bare-bones objects that worked and served as our starting points.