It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Login to JIRA with Python

Hi,

I've a python script that I'm using for an automated backlog update process.

For this I've written this as the first few lines:

jira_options = {'server' : 'http://server-name'}

jira = JIRA(options = jira_options, basic_auth = ('username', 'password'))

Is there any way I could not explicitly store the password in the code??

1 answer

Hey @Pranay Verma ,

chances are i misunderstood the question, but here goes:

Is there any way I could not explicitly store the password in the code??

Yeah. Store it in a file and protect the file via permissions, or hand the password to the script via command line arguments.

Ill give you two entry points to google them:

  • python argparse
  • python configparser

regards

Hi @Michael Wohlgemuth ,

I used oAuth rather than using BasicAuth, and that essentially solves the issue. Also, your suggestion regarding protecting the file also makes sense, thanks!!

Thanks,

Pranay.

Like Michael Wohlgemuth likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

334 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you