Note |
---|
Crumbs is being retired on 31 December 2024. Read the announcement here |
Table of contents
Table of Contents |
---|
...
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 |
The trigger |
can be |
actioned anytime 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 | Change an issue field to something based on the data from the Crumbs customer linked. 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
...
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 | Detect a field value change to trigger this automation. 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:
|
---|
Bearer <Jira API token>
HTTP method: Web request body: Wait for response:
| ||
5 | And: Send email | Now we can send the email out. To: Fill in the desired email details. |
---|
Link a customer automatically when an issue is created
...
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 | Use the issue created trigger to run this automation when any issue is created. |
2 | Then: Send web request | Use the Crumbs API to link a customer to the issue. Web request: |
|
|
|
Header:
HTTP method: |
GET
Web request body: Custom data:
Use |
Modify customer based on issue information
...
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:
Wait for response:
|