Forums

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

JIRA integration from C# application to add issue and a attachment

Rajeev Ranjan June 22, 2018

I am developing application in C# which needs to add issue in JIRA. I am opening JIRA web page with some default value and expecting user will modify certain value in UI. I can able to open page using below web page access but it doesn't work if active session is not available on particular browser. Do we have any option where we can create active session before this page call? I have login credential. 

Can I send any image attachment using below format? Please suggest.

https://xyz.com/jira/secure/CreateIssueDetails!init.jspa?pid=10000&issuetype=10004&priority=1&summary=Thisisnewbug1&description=Thisisbugdescription1

Thanks for your support.

Rajeev

 

1 answer

1 vote
Randy
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.
June 22, 2018

You should look into JIRA connect to do this via the REST interface. 

https://developer.atlassian.com/server/jira/platform/rest-apis/

Rajeev Ranjan June 24, 2018

Thanks Randy for your response. I was looking some option where I can directly open JIRA page and i got partial achievement using below URL. 

https://xyz.com/jira/secure/CreateIssueDetails!init.jspa?pid=10000&issuetype=10004&priority=1&customfield_10413=10152&customfield_10512=10334&customfield_10408=10332&summary=Thisisnewbug1&description=Thisisbugdescription1 

But this only works if browser is having active session otherwise it gets directed on login screen. 

Randy
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.
June 25, 2018

You shouldnt be integrating in that way because there's no guarantee that Atlassian will maintain that architecture going forward; every potential change to those pages on the Atlassian side will break your app.

You should be using JIRA connect and REST instead.

Suggest an answer

Log in or Sign up to answer