Table of contents
Copy customer fields to an issue
Scenario:
In Crumbs, create a customer and add information into a field.
In Jira Automation, setup an automation to read the linked customer, lookup the customer and copy customer values to an issue.
In Jira, link a customer to an issue.
Jira Automation Steps
Step | Component | Details |
---|---|---|
1 | When: Field value changed | This is a trigger, and can be any moment in time you wish to copy the customer details over to the issue. Note that customers are linked after issue creation (which means that it must be triggered on issue update. Fields to monitor for changes: Change type: For: |
2 | Then: Send web request | Use the Crumbs API to find the Web request: Headers:
HTTP method: Web request body: Wait for response:
|
3 | And: Send web request | Use the Crumbs API to get the customer details. Web request: Headers:
HTTP method: Web request body: Wait for response:
|
4 | And: Edit issue fields | Choose fields to copy customer to e.g. Request participant: If you are copying a custom field, you will need to know the
|
Email main contact when customer is linked
Scenario:
In Crumbs, create a customer with a main contact.
In Jira Automation, setup an automation to read the linked customer, lookup a customer and email the main contact.
In Jira, create an issue and link the customer.
Jira Automation Steps
Step | Component | Details |
---|---|---|
1 | When: Field value changed | Fields to monitor for changes: Change type: For: |
2 | Then: Send web request | Use the Crumbs API to find the Web request: Header:
HTTP method: Web request body: Wait for response:
|
3 | And: Send web request | Use the Crumbs API to get the customer details. Web request: Header:
HTTP method: Web request body: Wait for response:
|
4 | And: Send web request | Use the Jira API to convert the user Web request: Header:
HTTP method: Web request body: Wait for response:
|
5 | And: Send email | To: Fill in the desired email details. |
Link a customer automatically when an issue is created
Scenario:
In Crumbs, create a customer.
In Jira Automation, setup an automation to link a customer.
In Jira, create an issue.
Jira Automation Steps
Step | Component | Details |
---|---|---|
1 | When: Issue is created | |
2 | Then: Send web request | Use the Crumbs API to link a customer to the issue. Web request: Header:
HTTP method: Web request body: Custom data: { "customerId": "<customerId>" } Use |
Modify customer based on issue information
In this scenario, we want to track the total budget used by requests from the customer.
Scenario:
In Crumbs, create a customer and a line field for ‘Budget Used’.
In Jira administration, create a ‘Cost’ number field and add it to the screen.
In Jira Automation, setup the automation to increment the budget by the issue cost.
In Jira, populate the cost field for an issue and link a customer to the issue and trigger the automation, for example by transitioning the issue.
Jira Automation Steps
Step | Component | Details |
---|---|---|
1 | When: Issue is transitioned | Example trigger when an issue is marked done to add the cost of the issue to the budget used. From status: In Progress To status: Done |
2 | Then: Send web request | Use the Crumbs API to find the Web request: Header:
HTTP method: Web request body: Wait for response:
|
3 | And: Create variable | Save the smart value Variable name: Smart value: |
4 | And: Send web request | Use the Crumbs API to get the customer details. Web request: Header:
HTTP method: Web request body: Wait for response:
|
5 | And: Create variable | Calculate the total and save it to a variable. This step is optional but makes it easier to explain. Variable name: Smart value: The smart value is broken down into:
|
6 | And: Send web request | Use the Crumbs API to modify the customer details. Web request: Header:
HTTP method: Web request body: Custom data: { "<Budget customer field ID>": {{total}} }
Wait for response:
|