59
Friday, June 15, 12

JIRA Workflow Magic

Embed Size (px)

DESCRIPTION

Our very own workflow wizard, Jonathan Doklovic, shares some of the latest tricks he's been shoving up his sleeve.

Citation preview

Page 1: JIRA Workflow Magic

Friday, June 15, 12

Page 2: JIRA Workflow Magic

Developer Relations, AtlassianJonathan Doklovic

or, watch me pull a workflow out of my... bundle?

Workflow Magic

Friday, June 15, 12

Page 3: JIRA Workflow Magic

How To Share Workflows

Friday, June 15, 12

Page 4: JIRA Workflow Magic

1. Export XML From JIRA

Friday, June 15, 12

Page 5: JIRA Workflow Magic

1. Export XML From JIRA

Friday, June 15, 12

Page 6: JIRA Workflow Magic

Friday, June 15, 12

Page 7: JIRA Workflow Magic

2. Import Workflow XML

Friday, June 15, 12

Page 8: JIRA Workflow Magic

2. Import Workflow XML

Friday, June 15, 12

Page 9: JIRA Workflow Magic

2. Import Workflow XML

Friday, June 15, 12

Page 10: JIRA Workflow Magic

3. Fix Missing Screens• Find the screen in the OLD JIRA instance

• Create a new screen in the NEW JIRA instance

• Try to configure the new screen by looking at the old screen

• Hunt through workflow xml for any other screens

• REPEAT

• Update id’s in workflow XML with new screen id’sFriday, June 15, 12

Page 11: JIRA Workflow Magic

3. Fix Missing Screens• Find the screen in the OLD JIRA instance

• Create a new screen in the NEW JIRA instance

• Try to configure the new screen by looking at the old screen

• Hunt through workflow xml for any other screens

• REPEAT

• Update id’s in workflow XML with new screen id’sFriday, June 15, 12

Page 12: JIRA Workflow Magic

3. Fix Missing Screens• Find the screen in the OLD JIRA instance

• Create a new screen in the NEW JIRA instance

• Try to configure the new screen by looking at the old screen

• Hunt through workflow xml for any other screens

• REPEAT

• Update id’s in workflow XML with new screen id’sFriday, June 15, 12

Page 13: JIRA Workflow Magic

3. Fix Missing Screens• Find the screen in the OLD JIRA instance

• Create a new screen in the NEW JIRA instance

• Try to configure the new screen by looking at the old screen

• Hunt through workflow xml for any other screens

• REPEAT

• Update id’s in workflow XML with new screen id’sFriday, June 15, 12

Page 14: JIRA Workflow Magic

3. Fix Missing Screens• Find the screen in the OLD JIRA instance

• Create a new screen in the NEW JIRA instance

• Try to configure the new screen by looking at the old screen

• Hunt through workflow xml for any other screens

• REPEAT

• Update id’s in workflow XML with new screen id’sFriday, June 15, 12

Page 15: JIRA Workflow Magic

3. Fix Missing Screens• Find the screen in the OLD JIRA instance

• Create a new screen in the NEW JIRA instance

• Try to configure the new screen by looking at the old screen

• Hunt through workflow xml for any other screens

• REPEAT

• Update id’s in workflow XML with new screen id’sFriday, June 15, 12

Page 16: JIRA Workflow Magic

3. Fix Missing Screens• Find the screen in the OLD JIRA instance

• Create a new screen in the NEW JIRA instance

• Try to configure the new screen by looking at the old screen

• Hunt through workflow xml for any other screens

• REPEAT

• Update id’s in workflow XML with new screen id’sFriday, June 15, 12

Page 17: JIRA Workflow Magic

Friday, June 15, 12

Page 18: JIRA Workflow Magic

2. 4. Import Workflow XML

Friday, June 15, 12

Page 19: JIRA Workflow Magic

2. 4. Import Workflow XML

Friday, June 15, 12

Page 20: JIRA Workflow Magic

2. 4. Import Workflow XML

Friday, June 15, 12

Page 21: JIRA Workflow Magic

Friday, June 15, 12

Page 22: JIRA Workflow Magic

5. Test Workflow

Friday, June 15, 12

Page 23: JIRA Workflow Magic

5. Test Workflow

Friday, June 15, 12

Page 24: JIRA Workflow Magic

6. Fix Missing Plugins

This could take hours!

• Inspect ALL Conditions/Validators/Functions• Keep track of which ones just have class names• Try to figure out which plugins are needed based on

classnames (google?)• Install all of the plugins• REPEAT

Friday, June 15, 12

Page 25: JIRA Workflow Magic

6. Fix Missing Plugins

This could take hours!

• Inspect ALL Conditions/Validators/Functions• Keep track of which ones just have class names• Try to figure out which plugins are needed based on

classnames (google?)• Install all of the plugins• REPEAT

Friday, June 15, 12

Page 26: JIRA Workflow Magic

6. Fix Missing Plugins

This could take hours!

• Inspect ALL Conditions/Validators/Functions• Keep track of which ones just have class names• Try to figure out which plugins are needed based on

classnames (google?)• Install all of the plugins• REPEAT

Friday, June 15, 12

Page 27: JIRA Workflow Magic

6. Fix Missing Plugins

This could take hours!

• Inspect ALL Conditions/Validators/Functions• Keep track of which ones just have class names• Try to figure out which plugins are needed based on

classnames (google?)• Install all of the plugins• REPEAT

Friday, June 15, 12

Page 28: JIRA Workflow Magic

6. Fix Missing Plugins

This could take hours!

• Inspect ALL Conditions/Validators/Functions• Keep track of which ones just have class names• Try to figure out which plugins are needed based on

classnames (google?)• Install all of the plugins• REPEAT

Friday, June 15, 12

Page 29: JIRA Workflow Magic

6. Fix Missing Plugins

This could take hours!

• Inspect ALL Conditions/Validators/Functions• Keep track of which ones just have class names• Try to figure out which plugins are needed based on

classnames (google?)• Install all of the plugins• REPEAT

Friday, June 15, 12

Page 30: JIRA Workflow Magic

6. Fix Missing Plugins

This could take hours!

• Inspect ALL Conditions/Validators/Functions• Keep track of which ones just have class names• Try to figure out which plugins are needed based on

classnames (google?)• Install all of the plugins• REPEAT

Friday, June 15, 12

Page 31: JIRA Workflow Magic

Friday, June 15, 12

Page 32: JIRA Workflow Magic

7. Fix Missing Custom Fields• Look through XML for custom field id’s• Dig through the OLD JIRA instance for a few hours• Try to figure out which plugins are needed• Install all of the plugins and create the custom fields• Update the workflow.xml with new id’s• DELETE THE IMPORTED WORKFLOW AND START AGAIN!

Friday, June 15, 12

Page 33: JIRA Workflow Magic

7. Fix Missing Custom Fields• Look through XML for custom field id’s• Dig through the OLD JIRA instance for a few hours• Try to figure out which plugins are needed• Install all of the plugins and create the custom fields• Update the workflow.xml with new id’s• DELETE THE IMPORTED WORKFLOW AND START AGAIN!

Friday, June 15, 12

Page 34: JIRA Workflow Magic

7. Fix Missing Custom Fields• Look through XML for custom field id’s• Dig through the OLD JIRA instance for a few hours• Try to figure out which plugins are needed• Install all of the plugins and create the custom fields• Update the workflow.xml with new id’s• DELETE THE IMPORTED WORKFLOW AND START AGAIN!

Friday, June 15, 12

Page 35: JIRA Workflow Magic

7. Fix Missing Custom Fields• Look through XML for custom field id’s• Dig through the OLD JIRA instance for a few hours• Try to figure out which plugins are needed• Install all of the plugins and create the custom fields• Update the workflow.xml with new id’s• DELETE THE IMPORTED WORKFLOW AND START AGAIN!

Friday, June 15, 12

Page 36: JIRA Workflow Magic

7. Fix Missing Custom Fields• Look through XML for custom field id’s• Dig through the OLD JIRA instance for a few hours• Try to figure out which plugins are needed• Install all of the plugins and create the custom fields• Update the workflow.xml with new id’s• DELETE THE IMPORTED WORKFLOW AND START AGAIN!

Friday, June 15, 12

Page 37: JIRA Workflow Magic

7. Fix Missing Custom Fields• Look through XML for custom field id’s• Dig through the OLD JIRA instance for a few hours• Try to figure out which plugins are needed• Install all of the plugins and create the custom fields• Update the workflow.xml with new id’s• DELETE THE IMPORTED WORKFLOW AND START AGAIN!

Friday, June 15, 12

Page 38: JIRA Workflow Magic

7. Fix Missing Custom Fields• Look through XML for custom field id’s• Dig through the OLD JIRA instance for a few hours• Try to figure out which plugins are needed• Install all of the plugins and create the custom fields• Update the workflow.xml with new id’s• DELETE THE IMPORTED WORKFLOW AND START AGAIN!

Friday, June 15, 12

Page 39: JIRA Workflow Magic

Friday, June 15, 12

Page 40: JIRA Workflow Magic

There’s Got To Be A Better Way

Goal #1: Export a bundle with EVERYTHING

Goal #2: Imports should just work

Goal #3: Little to no manual setup required

Goal #4: Workflow bundles “shareable” on Marketplace

Friday, June 15, 12

Page 41: JIRA Workflow Magic

There’s Got To Be A Better WayGoal #1: Export a bundle with EVERYTHING

Goal #2: Imports should just work

Goal #3: Little to no manual setup required

Goal #4: Workflow bundles “shareable” on Marketplace

Friday, June 15, 12

Page 42: JIRA Workflow Magic

There’s Got To Be A Better WayGoal #1: Export a bundle with EVERYTHING

Goal #2: Imports should just work

Goal #3: Little to no manual setup required

Goal #4: Workflow bundles “shareable” on Marketplace

Friday, June 15, 12

Page 43: JIRA Workflow Magic

There’s Got To Be A Better WayGoal #1: Export a bundle with EVERYTHING

Goal #2: Imports should just work

Goal #3: Little to no manual setup required

Goal #4: Workflow bundles “shareable” on Marketplace

Friday, June 15, 12

Page 44: JIRA Workflow Magic

There’s Got To Be A Better WayGoal #1: Export a bundle with EVERYTHING

Goal #2: Imports should just work

Goal #3: Little to no manual setup required

Goal #4: Workflow bundles “shareable” on Marketplace

Friday, June 15, 12

Page 45: JIRA Workflow Magic

Friday, June 15, 12

Page 46: JIRA Workflow Magic

Friday, June 15, 12

Page 47: JIRA Workflow Magic

WTF Just Happened?• Exported workflow as a zip file

• Accepted required plugins to be exported

• Added notes for importer in Markdown format

Friday, June 15, 12

Page 48: JIRA Workflow Magic

WTF Just Happened?• Imported workflow zip in a fresh JIRA instance

• Mapped/Created required JIRA statuses

• Approved plugins to be installed

• Viewed summary for sanity check

• Imported workflow (+ plugins, screens, custom fields)

• Reviewed import report

• Double checked workflow in the workflow designer

Friday, June 15, 12

Page 49: JIRA Workflow Magic

• Upload to Marketplace• Add to “Workflow Bundles” category• Mark as NOT deployable

Sharing Workflow Bundles

Friday, June 15, 12

Page 50: JIRA Workflow Magic

Friday, June 15, 12

Page 51: JIRA Workflow Magic

Friday, June 15, 12

Page 52: JIRA Workflow Magic

Friday, June 15, 12

Page 53: JIRA Workflow Magic

Friday, June 15, 12

Page 54: JIRA Workflow Magic

Friday, June 15, 12

Page 55: JIRA Workflow Magic

Friday, June 15, 12

Page 56: JIRA Workflow Magic

Friday, June 15, 12

Page 57: JIRA Workflow Magic

14+ Workflow Bundles In Marketplace RIGHT NOW!

Friday, June 15, 12

Page 58: JIRA Workflow Magic

JIRA Workflow Sharing Plugin (beta)

http://marketplace.atlassian.com

or search in Universal Plugin Manager

http://atlss.in/workflow-sharing

Friday, June 15, 12

Page 59: JIRA Workflow Magic

Thank you!

Friday, June 15, 12