This is a demo script to simulate the connection of Gridly and Jira via Lambda function of the Gridly's Trigger. User can create a Jira ticket using LQA ticket of Gridly.
Before using the script via the Gridly's Trigger, you need to set up Jira credentials in configs.py. Credentials include the following items:
- username: Enter your username in Jira. For common cases, email is the username.
- apiKey: Enter your API key that is created for your account. If you don't know about the API key, please follow this documentation.
- domain: Enter your Jira domain.
- projectKey: Enter your Jira project key.
Run below command to install package dependencies if you do not have package dependencies:
pip install -t . -r requirements.txt --no-user
After that, you need to wrap this script into a .zip file without the parent directory. Then upload to Gridly's Trigger. In Gridly's Trigger, please following these steps:
- Create a new trigger.
- Select the condition is Ticket created.
- Select Invoke Lambda function section.
- Create new function with the .zip file.
- Enter the payload with this format:
{
"data": "${rawData}",
"view": "${view.name}",
"grid": "${grid.name}",
"user": "${user.email}"
}
- Save the trigger configuration.
To create a Jira ticket via the Gridly's LQA ticket, please following these steps:
- Right click on any cell.
- Select Add ticket.
- Fill the information.
- Click on Add button.
- Check the Jira board.