It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Conditions, scripting & workflow

Hi everyone, 

Looking for a little help here - we have a new project that I am working on (Project X) & in this project after an approval is met the issue will move to a specified status, when it hits this status I'd like to create an issue in another project (Project Y) and block the issue in Project X from transitioning until the issue created in Project Y has been resolved. After that issue is resolved then allow the issue in Project X to transition and move along in workflow. I'm going to use some of automation for this but I think I'll need some scripting also (not too familiar with it) to also accomplish the condition on the transition in the workflow. Anyone have any thoughts on a best route to travel here? Thank you!

2 answers

Hello Kevin, 

I started to try and sort this out for you but only got part way. Maybe this will help get you on the correct path. I think this may come down to either a Post function on the workflow (or both project workflows) or an Automation Rule. Here's what I have so far for the Post Function possibility. Its not a full answer but perhaps someone else can jump in here and carry you over the finish line. 

Step 1: Create a Post function on the workflow of Project X on the transition to the “Specified status”.

 Go to the workflow of Project X, click on the transition where you need the post function, in the screen that appears click “Post Functions”, then look for “Add new post function”. Use “Create Issue” Post function.  Make sure to scroll down and click “Add”

 Within the post function set:

 Create Issue > Project to “Project Y”

Issue Type: Note, you’ll need to set up an issue type in Project Y to receive your new Issue.

Link to new Issue
You can choose Current Issue:  “is blocked by” the new issue

Hi Kevin,

This isn't too tricky with Automation :)

 

Create new issue on status change

Create a rule that looks like this:

Screen Shot 2018-07-11 at 11.24.22 am.pngScreen Shot 2018-07-11 at 11.24.30 am.pngScreen Shot 2018-07-11 at 11.24.34 am.png

So whenever an issue in TEST (i.e. Project X) gets transitioned, we'll check if it's hit the specific status we want, then create an issue in Project Y that specifically links to the one in Project X.

 

Block issues in Project X from transitioning

Then create a second Automation rule that looks like this:

Screen Shot 2018-07-11 at 11.27.24 am.pngScreen Shot 2018-07-11 at 11.27.31 am.pngScreen Shot 2018-07-11 at 11.27.37 am.png

Whenever someone transitions an issue in Project X that has any blocking links, then we transition it back to its original status (effectively 'preventing' the transition).

 

You can use Automation to extend these two rules however you want — you might want to specifically ensure that the blocking issues are all in Project Y, for example. But there's certainly no need for extra scripting here :)

 

Huw

Intern Developer @ Code Barrel (makers of Automation)

Huw, Thank you for sharing this. It is very helpful to me as well. I hope Kevin will benefit too. ~Joe

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Desk

Tell us how you've implemented Change Management

Hello Community 👋, I'm a product manager at Atlassian, looking at improving change management capabilities across our products. In particular, we're looking at bridging the gap between Dev & ...

327 views 0 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you