Skip to content
Advertisement

How To Dynamically Use User Input for Jira Python

So I am trying to make an interactive method of pulling out Jira information, based on a Jira Key.

Full Code:

JavaScript

The main thing that is breaking is this:

JavaScript

For some odd reason, it doesn’t like the way I am using user input for jira_key even though it will print out what I want if I use print(jira_key)

Am I invoking it wrong?

I basically need this:

JavaScript

Whereby which, DESDI-212 will be user input. When I try it using '(jira_key)' it responds back with this error:

JavaScript

I expect to see this, which if I use 'DESDI-212' instead of '(jira_key)' it actually works:

JavaScript

Advertisement

Answer

So it turns out I was invoking it wrong. I needed to drop the '' around the '(jira_key)' and just invoke it as follows with (jira_key) instead:

JavaScript

As such I got the expected output I needed, not it’s working as expected:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement