Forums

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

How to use jira-python library along with API calls not yet included into it

Francois Leroux September 25, 2018

Hi,

 

I'm looking to use jira-python's oauth authentication capability, but the library does not seem to support the option to add users to organization's yet.

 

The corresponding REST call would be:  POST /rest/servicedeskapi/organization/{organizationId}/user

https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-organization-organizationId-user-post)

 

I'm trying to figure out how to authenticate using jira-python and then reuse this authentication to manually execute the POST call above.

 

Best regards,

 

Francois

1 answer

0 votes
Mohamed Benziane
Community Champion
September 25, 2018

Hi @Francois Leroux

I'm not a python expert, but if the jira library doesn't allow you to add user in to organization you can user the urllib to try a post but you will need to authenticate yourself in the parameters.

Sorry for my english.

Regards

Francois Leroux September 25, 2018

Thanks Mohamed,

 

However that's the issue I'm trying to solve, especially for oauth since it's taken care of in the library. Trying to see if somehow it's possible to use the library and specify the missing API URL manually while still using the authentication.

Mohamed Benziane
Community Champion
September 25, 2018

Hi,

 

Maybe you can take a look at this

https://jira.readthedocs.io/en/master/advanced.html

or try to use the jirashell

https://jira.readthedocs.io/en/master/jirashell.html

 

Regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events