Forums

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

JIRA REST API authentication from Confluence

Ricardo Figueiredo
June 6, 2019

In order to create issues in JIRA from a Confluence page I want to use JIRA's REST API. I wonder which is the best way to pass credentials and make authentication.

I have solved all connection issues except the authentication which I am using a fixed user and password inserted on Authorisation Header. I wanted to be able to pass the context user on the Confluence page.

Thank you for your help.

Best regards,
Ricardo Figueiredo

2 answers

1 accepted

2 votes
Answer accepted
Bob Swift
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 Champions.
September 28, 2011

They all work and are used by many people, but do require proper setup and use :). JIRA Command Line Interface is also available. Both of the CLIs rely on JIRA interfaces like XML/RPC, SOAP, REST, and in a few cases JIRA UI access.

kamal2222ahmed
Contributor
September 28, 2011

Yes, thanks Bob, The Documentation is a bit terse though

getIssue

java.util.Hashtable getIssue(java.lang.String token,
                             java.lang.String issueKey)
                             throws java.lang.Exception

    Gets an issue from a given issue key. The Hashtable returned have nested Hashtables for keys, components, affectsVersions, fixVersions and customFieldValues.

    Parameters:
        token - 
        issueKey - the key of an issue (e.g. JRA-111) 

token actually means the return object from jira1.login("","")
i could not get SOAP to work, since SOAPy is no longer updated.

0 votes
Bob Swift
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 Champions.
September 28, 2011
In that case, use the higher level CLI that has already dealt with all the lower level API complexities.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events