Skip to content

IlfirinPL/robotframework-jira

Repository files navigation

robotframework-jira

image

image

Robot Framework keyword library wrapper for atlassian-python-api

This module allows easy use of JIRA's functions

Any docstrings JIRA provides are passed through to Robot Framework, so they're available in RIDE and in keyword documentation generated via libdoc.

For more information on Robot Framework please visit the Robot Framework homepage!

Installation

pip install robotframework-jira

Usage

JIRALibrary keywords documentation

*** Settings ***
Library     Collections
Library     JIRALibrary


*** Variables ***
${URL}      https://jira.com
${USER}     myUser
${PASS}     myPass


*** Test Cases ***
Connect To JIRA
    ${session}    Connect To Jira    ${URL}    ${USER}    ${PASS}
    ${projects}    Projects    ${session}
    Log Dictionary    ${projects}    WARN

Connect To JIRA And Skip SSL Check
    Evaluate    urllib3.disable_warnings()
    ${session}    Connect To Jira    ${URL}    ${USER}    ${PASS}    verify_ssl=${False}

    ${dict}    Get Server Info    ${session}
    Log To Console    Server Info
    Log Dictionary    ${dict}    WARN

Add Comment to Issue
    ${session}    Connect To Jira    ${URL}    ${USER}    ${PASS}
    Issue Add Comment    ${session}    JIRAID-1234    My long comment !

Contribute

If you like this module, please contribute! I welcome patches, documentation, issues, ideas, and so on.