Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help with Jira Automation: Incrementing a Counter for Sub-tasks

Ahmed Saci
Contributor
October 31, 2023

Hello Atlassian Community,

I'm encountering an issue with Jira Automation. My goal is that each time a new sub-task is created under a specific ticket (or task), it should be given a unique identifier such as OP-1, OP-2, etc. However, it's vital that this counter be specific to each parent ticket.

For instance, if I create a sub-task under Task A, it should be labeled as OP-1, the next one as OP-2, and so on. Now, if I then create a sub-task under a different Task B, it should also start with OP-1, not continue incrementing from Task A.

Here's what I've tried so far:

Trigger: When a ticket is created.
Condition: The ticket type is "Operation" (or my specific sub-task type).
Action:
Set a ticket property Operation_ID for the parent ticket by incrementing its current value.
Update the sub-task fields with the new Operation_ID value from the parent ticket.
However, the results aren't as expected. The sub-tasks either get a blank value or the counter doesn't increment correctly.

Could someone guide me on how to achieve this, or if there's a better approach to handle this scenario?

Thank you in advance!

1 answer

5 votes
Deleted user
September 15, 2021

Hey @Phil Beckman ,
Were you able to find a solution?

We just released a new version of Exalate that allows you to integrate Salesforce with any of these products (Jira included).

Cases is one of the many entities that you can integrate with Jira tickets (taks, bugs, stories, etc). You can start the sync based on any query you would like with our Trigger functionality.

Here is the guide that explains how to do it:

 

Let me know if this helps,

Suggest an answer

Log in or Sign up to answer