Forums

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

Jira automation - sync different statuses

Joel Batac
Contributor
October 17, 2023

Hi,

 I have a service desk project(SD) and a regular jira project (JB). Both have their own workflow and statuses.  Is there a way to write a single rule that can sync different statuses?

 

JB - Open => SD - waiting for support
JB - Under Refinement => SD - Pending
JB - In Progress => SD - In Progress
JB - Resolved => SD - Resolved
JB - Canceled => SD - Canceled
JB - Closed => SD - Closed
JB - Blocked => SD - Pending

1 answer

2 votes
Charlie Misonne
Community Champion
October 17, 2023

Yes you can!

Here is how I would do it. I assume you want to sync statuses between linked issues but that part is not very important for my example.

  1. Your trigger will be issue transitioned without any from and to status.
  2. Create a lookup table action for your status mapping (screenshot)
    The table is called statusTable in my example
  3. In the linked issue branch (or whatever way you are getting the other issue) add a transition action with this as the value: {{statusTable.get(triggerIssue.status)}}

By doing this you have a simple rule for your status sync and you don't need an if/else branch for each status.
Hope it helps!

2023-10-17 16_50_30-Automation - Jira.png2023-10-17 16_49_38-Automation - Jira.png

Joel Batac
Contributor
October 17, 2023

Thanks Charlie. Is this for Cloud? I can't see lookup table. I'm using DC version. 

Charlie Misonne
Community Champion
October 17, 2023

Oh sorry! I did not pay enough attention to the tags on this question. Yes my answer is for cloud 

 

No lookup tables on DC indeed so you will have to do an if/else for each different status

Suggest an answer

Log in or Sign up to answer