Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Source jira issue #21

Open
ronnie-webb opened this issue Apr 11, 2020 · 1 comment
Open

Data Source jira issue #21

ronnie-webb opened this issue Apr 11, 2020 · 1 comment

Comments

@ronnie-webb
Copy link

ronnie-webb commented Apr 11, 2020

Maybe there is a way already, but is there a way to pull already created jira issues and parse the jira fields? Sort of like the below example in python but this would be just a datasource to call jira issues and gives you the raw output from the api call.

python

from jira import JIRA
 
def _connect():
    user = config.JIRA_USER
    apikey = config.JIRA_TOKEN
    server = config.JIRA_SERVER

    options = {
     'server': server
    }

    jira = JIRA(options, basic_auth=(user, apikey))
    return jira

def run_describe_issue(debug, ticket):
    issue = get_issue_info(ticket)
    for field_name in issue.raw['fields']:
        print ("Field:", field_name, "Value:", issue.raw['fields'][field_name])

def get_issue_info(ticket):
    jira = _connect()
    return jira.issue(ticket)
@fourplusone
Copy link
Owner

Right now, this is not possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants