Jira can automatically update a Zendesk Support ticket linked to a Jira issue when the status of the issue changes in a Jira workflow.
A Jira workflow is the set of statuses and transitions that an issue goes through during its lifecycle. You can configure a workflow to automatically update a linked ticket after a Jira issue moves from one status to another in the workflow.
For example, after an engineer changes the Jira workflow status of an issue from "In progress" to "Done," Jira can automatically add an internal note to the linked Zendesk ticket notifying the agent. The agent can then notify the customer.
Jira can also automatically notify the agent that a developer is now working on an issue by adding an internal note to the ticket after the engineer changes the workflow status of the issue from "To do" to "In progress."
This article contains the following topics:
Understanding how the ticket updates work
Zendesk tickets are updated from Jira workflows using post functions. Post functions are a Jira workflow feature used to carry out additional processing after a workflow transition is executed. For example, a post function can update the issue's fields after a transition.
Post functions are added to workflow transitions, not statuses. They run after the transition is complete. Some post functions are essential and can't be deleted from a transition or reordered. However, you can insert optional post functions between them. The Zendesk integration adds "Notify Zendesk Ticket" to the list of optional post functions in Jira.
See the Atlassian documentation to learn more about post functions.
Configuring a workflow to update tickets
- In Jira, click the Settings (cog) icon on the left sidebar, and select Issues.
- On the Issues page, select Workflows from the left sidebar.
- Locate the workflow used to address issues linked to Zendesk tickets, and click
Edit on the right side of the workflow.Note: Jira doesn't let you edit a live workflow. You must edit it in draft mode.
- In the Transitions column, click the name of the transition you want to use to
trigger ticket updates.
- Click the Post Functions tab, then click the Add post function link on the
right.
- Select the Notify Zendesk Support post function from the list and click Add.
- Configure the ticket update settings, then click Add.
You can change the ticket status, add an internal or public comment, add tags, and include comment placeholders in the comment text.
Note: Deleting tags is not supported.
- Next to the Zendesk Support post function, select the move down icon to move it
underneath the "Add a comment to an issue if one is entered during a transition" post
function.
- Click Publish Draft at the top of the page, then click Publish.
It's a good idea to save a backup copy when prompted.
Important: Your changes won't take effect until you publish the draft.
Changing the ticket update settings
You can change the settings at any time.
- In Jira, click the Settings (cog) icon on the left panel, and select Issues.
- On the Issues page, select Workflows from the left sidebar.
- Click Edit on the right side of the workflow containing the transition you want to edit.
- Select the transition and click the Post Functions tab.
- Click the Edit (pencil) icon on the right side of the post function that updates
the ticket.Note: You can also delete the post function by clicking the delete (X) icon.
- Make your changes, then click Update.
- Click Publish Draft, then click Publish.
Supported comment placeholders
You can enter dynamic content placeholders in the comment field of a post function. For example, you can enter the following placeholder in the comment field of a Done transition function:
Issue {{issue.key}} has been resolved.
Issue QA-4 has been resolved.
For more information, see Using placeholders.
The Zendesk JIRA integration supports issue-specific, transition-specific, and user-specific placeholders. The placeholders are listed in the tables below. If placeholders for user profile fields aren't rendering, check your profile visibility settings in Jira because many fields have restricted visibility by default.
Placeholder | Description |
---|---|
issue.id | Internal id number of the issue |
issue.key | Issue key. Example: QA-4 |
issue.fields.summary | Issue summary |
issue.fields.description | Issue description |
issue.fields.issuetype.name | Issue type |
issue.fields.issuetype.description | Issue type description |
issue.fields.creator.name | User name of the person who created the issue |
issue.fields.creator.emailAddress | Email address of the person who created the issue |
issue.fields.creator.displayName | Display name of the person who created the issue |
issue.fields.creator.timeZone | Time zone of the creator |
issue.fields.reporter.name | Name of the person who reported the issue |
issue.fields.reporter.emailAddress | Email address of the person who reported the issue |
issue.fields.reporter.displayName | Display name of the person who reported the issue |
issue.fields.reporter.timeZone | Time zone of the reporter |
issue.fields.assignee.name | User name of the person assigned to the issue |
issue.fields.assignee.emailAddress | Email address of the person assigned to the issue |
issue.fields.assignee.displayName | Display name of the person assigned to the issue |
issue.fields.assignee.timeZone | Time zone of the assignee |
issue.fields.user.name | Username of the user |
issue.fields.user.emailAddress | Email address of the user |
issue.fields.user.displayName | Display name of the user |
issue.fields.user.timeZone | Time zone of the user |
issue.fields.created | Date and time the issue was created |
issue.fields.updated | Date and time the issue was updated |
issue.fields.priority.name | Issue priority name |
issue.fields.project.name | Issue project name |
issue.fields.project.key | Issue project key. For example: QA |
issue.fields.lastViewed | Date and time the issue was last viewed |
issue.fields.fixVersions.name | Name of the fix version/s* |
issue.fields.fixVersions.description | Description of the fix version/s* |
issue.fields.fixVersions.releaseDate | Release date of the fix version/s* |
issue.fields.versions.name | Name of the affected version/s* |
issue.fields.versions.description | Description of the affected version/s* |
issue.fields.versions.releaseDate | Release date of the affected version/s* |
issue.fields.components.name | Name of the component/s* |
issue.fields.components.description | Description of the component/s* |
issue.fields.duedate | Due date |
issue.fields.timespent | Time spent |
issue.fields.timeoriginalestimate | The original estimated time required to resolve the issue |
issue.fields.resolution.name | A record of the issue's resolution |
issue.fields.resolution.description | A complete description of the resolution |
issue.fields.resolutiondate | Date of issue resolution |
issue.fields.watches.watchcount | The number of people watching the issue |
issue.fields.labels | The label the issue relates to |
issue.fields.environment | The hardware or software environment the issue relates to |
issue.fields.votes.votes | The number of votes an issue has |
issue.last_comment | Last comment on the issue |
*A comma-separated list if multiple items are selected.
Placeholder | Description |
---|---|
transition.to_status | The status an issue has transitioned to. For example: Done |
transition.from_status | The status an issue has transitioned from. For example: In Progress |
transition.transitionName | The transition name that occurred |
transition.workflowName | The workflow name |
Placeholder | Description |
---|---|
user.key | Username of the person who caused the transition. This applies for Jira Server users only. |
user.displayName | The user's display name. This applies to Jira Cloud users only. |
47 comments
Yaniv Dayan
Hi,
We use this method to inform the Zendesk agent on closed issues from Jira by adding an internal note on the Zendesk Ticket. However, the Internal note is added under the name of one of our agent's names and not on a specific Zendesk admin name that we created for these purposes (General_Zendesk_Admin_User).
How can we control the user's account that "sends" these notification notes?
2
Philipp Lulay
Hi,
we have activated the post trigger for status updates. So far, this works in general. However, as soon as we link multiple Zendesk tickets (more than 2-3), the internal note only goes out to a subset of the link zendesk tickets. This looks like a random factor. There are no errors logged in the zendesk api activity.
1
Giuseppe
Hi Phillip,
I see you have already opened a ticket for this. The Post Function supports updating multiple Zendesk tickets which are linked to an individual Jira issue, so we may have to gather more details about your issue. Please continue working with the Advocate in the ticket to address this.
Thank you!
0
Stephen Loase
Hi - Is it possible to have the trigger update the Zendesk ticket for any comment made in JIRA regardless of status change? thx!
3
Phil Baker
Hi,
Does the Zendesk ticket need to remain open (less than closed) for the Jira update to function? It seems that once the Zendesk ticket is closed, the link from Jira back to the ticket is broken.
Thanks,
Phil
1
Sean Bourke
Hey Stephen Loase,
What type of updates are you looking to make to a Zendesk ticket when a comment is made in Jira?
0
Sean Bourke
Hey Phil Baker,
Once a Zendesk ticket is Closed, it can no longer be updated or edited. If you are finding that this closure is resulting in inabilities to update the ticket due to timing, you can update the existing closure automation to exclude tickets with a jira_escalated tag and create an additional automation for these tickets to close with an extended delay.
0
Stephen Loase
Hey Sean - I’d love for ANY comment on a JIRA ticket to be synced as an internal comment on the corresponding Zendesk ticket regardless of status. We’re trying to get more oversight when an engineer updates a JIRA (would rather keep my support team in Zendesk then having to check e-mail)
5
Federica Sapienza
Hi,
we are having some issues with this automation. When the automation starts, the Zendesk ticket is associated to one of our agent even if the ticket was not originally assigned to her.
How could it be possible?
Thank you,
Federica
0
Sean Bourke
Hey Stephen Loase,
Thanks for the suggestion. I've recorded your feedback to consideration in future updates and releases.
1
Sean Bourke
Hi Federica Sapienza,
Are you seeing this assignment in the Zendesk Ticket, or the Jira Issue? What actions are being performed which result in the ticket or issue being assigned?
0
Federica Sapienza
Hi @...,
We are seeing this assignment in Zendesk Ticket.
It goes like this: we receive a ticket on zendesk and assign it to agent A. The Jira ticket is then created through Zendesk. Once it changes status on Jira, a comment on the Zendesk ticket is created and it seems to be created from agent B (even if the creation is automatic and agent B is not involved in any operation related to that ticket, neither on jira nor zendesk). After the creation of the comment, the Zendesk ticket is re-assigned automatically to agent B.
Hope I was clear enough,
thank you!
0
Heather Rommel
Hi Federica Sapienza,
If your Jira/Zendesk integration was set up using an Agent account rather than a dedicated service account for the integration, the comments may look like they're coming from a person when in fact it's just the app.
As far as the assignment of the ticket, that sounds like you have some sort of trigger in Zendesk doing that. I suggest looking at the Events of the ticket and examining the triggers that are firing on the ticket.
1
Anthony
I don't think these instructions are fit for team-managed projects. The workflows for these projects are not available at step .2
1
Jimmy Rufo
Hi @...,
Per our conversation over email, and what Anthony stated above, these instructions don't seem to fit for team-managed projects. Can someone please share those specific instructions?
0
Pippa
Hi! first of all sorry if this question was previously asked, but can a workflow be created to push internal notes to Zendesk even if the status in Jira hasn't changed.
For example, a Jira card has got the status "To do" and an engineer looks at the card but realizes they need more information form support in Zendesk so they comment in on the Jira card by tagging the reporter and asking for the info. The status doesn't change in Jira but we want it to change the status in Zendesk to "Open" and sends over the comment as an internal note to Zendesk ticket.
0
Jimmy Rufo
Hi Pippa, this is a known limitation, and something I've already discussed with PM @... a few times. Its worth likely submitting this use case for product feedback.
0
Sean Bourke
Hey Pippa,
Thanks for the feedback. As Jimmy Rufo has noted there's no native way to bring the notes on the Jira card into Zendesk at the moment.
With that said, you may be able to achieve something similar to this through:
1. Having the Jira user add an (internal) comment to the Zendesk ticket requesting more information
2. Utilising field sync to have a 'more information requested' field which is toggled and would trigger a trigger in Zendesk OR;
3. Detecting if 'This notification was sent from JIRA' is within the comment via a trigger and updating the ticket status
0
T Y
Hello,
Recently updating a ticket when the status of a Jira issue changes is not working for me. It worked before.
0
Sean Bourke
Hey T Y,
Is this no longer working on existing issues where it was previously? Could you please confirm that the projects still align to the existing workflows and that no other workflows have been introduced. If there are new workflows, you may need to add the Zendesk action to these as well.
0
T Y
Hi @...,
I didn't introduce new workflows but update Zendesk plan from trial to Suite Team. It worked to me when it was trial version.
0
Sean Bourke
Hey T Y,
Thanks for the additional context. I'd first recommend reinstalling the integration - this will reset the integration user or tokens granted for Jira to communicate with Zendesk and may resolve this.
1
Ahmed Esmat
Hello,
We are the post trigger for status updates and it is working fine when the Jira issue is linked to a single Zendesk Ticket. However, when we link multiple Zendesk tickets, none of them gets updated when the Jira is updated. Is there a solution or a workaround to this?
Regards,
Ahmed
0
Sandy Kasselia
Hi,
The teams that should have the Zendesk<>Jira integration is sharing a workflow with teams that doesn't need the integration. My question here is if we add these post functions on this shared workflow, will teams that does not use Zendesk but still use this workflow be affected in anyway by these post functions
1
Nara
0
Rickard Karlsson Lundmark
Hi,
When using the {{issue.last_comment}} field, I get the raw JSON, which isn’t really what I’m looking for. Is there an (undocumented) ”last comment field in HTML/markdown/plain text” field code available, or some other workaround?
Edit: So I’m learning it’s the comment in ADF format I’m looking at. Zendesk has no way of parsing ADF (and neither has the user). In JIRA API calls the URI can be appended to get HTML or Markdown instead, but where would that setting be for webhools?
Regards,
Rickard
0
Jason Wong
Has anyone solved the issue where any comment update in a JIRA issue triggers the integration back to Zendesk even if the state doesn't change in JIRA?
1
Mario Valdes
Hello, for the past few days, Jira Zendesk post functions have been unreliable. Sometimes they are triggered, sometimes they don't, even though the transition is being completed. Any idea why this is happening or how can I troubleshoot it?
4
Kananda Silveira
Hello guys, I don't know if my problem is the same of Mario Valdes but I have a post function to post a internal note on the Linked Zendesk Support Ticket on my Create transition and NEVER works. I put the same post function on another transition (To Do > In Progress) and here works fine. Do you know if we have a limitation to post notes on create transition?
PS: Yes, I am publishing the changes.
1
Victoria Thrash
We too are having issues here. This has been working seamlessly for a long time but recently has stopped working or is inconsistent.
3