SlideShare a Scribd company logo
1 of 41
Automating Jira
Elad Ben-Noam
Agile Tools Consultant
@AgileSparks
AgileSparks
2 |
❖ We help companies improve by adopting agile principles and
practices
❖ We provide training and coaching to all organizational levels,
from high management to developers
❖ Our team consists of Agile professionals with diverse expertise
❖ Global solutions – US, Israel, India
What is Automation?
What pops when you think of
Automation?
All these apps are relevant when our goal is to connect 2 separate apps
Integrations
Integrating these apps is relevant when our goal is to create a
sync between Jira’s data and the other apps data
What are we going to talk about?
• Helping teams become more productive
• Cataloging issues for quicker search
• Achieving much more details about the issues life cycle
• Making the tool work for the users
Individuals and interactions
over
processes and tools
From the Agile Manifesto
Automating (within) Jira
ScriptRunner Power Scripts
Automation
for Jira
Jira Plugin
• Big data of API commands to monitor/change almost anything in Jira
• Ability to create JQL* queries, with some scripting even recursive queries
• For example: query to find all epics with certain component and afterwards a query
to get all the children of those epics
• Ready to use “Postman Collections” with all REST API commands
• Provides some operations that are not allowed from the Jira UI
• Easy commands with user/password to get data (cloud: email/API key)
• Important Note: there are 2 different versions of API:
• Server / Data Center versions uses up to version 2
• Cloud uses up to version 3
* JQL - Jira Query Language
There are 3 ways of operating with Jira’s REST API:
1. Operating a script only when needed
2. Operating a script by schedule (daily/every hour/etc.)
3. Operating scripts by a listener
Webhooks
Webhooks enables you to get
notifications about changes in Jira
once it happens.
For example: you can get a
notification for creation / editing /
deletion of issues / sprint / boards
and more.
To get the data you need to setup
a listener to receive the data and
operate the script.
• Operates from within Jira
• Available for both Server and Cloud versions:
• For cloud you must upload the plugin to the marketplace and define as
private
• Jira’s code is in Java and that’s the preferred plugin language
• Today’s tools allows you to create with different language and transform the
code to Java
• Different from REST API way, a plugin can change the process itself
Jira Plugin
ScriptRunner Power Scripts
Traditional Scripting Apps
Advantages:
• Scripts with variety of functions
• Built-in scripts that enables quick functionalities
• Built-in advanced JQL functions
• Enhanced workflow conditions and validations
Traditional Scripting Apps
Disadvantages:
• Must have a Jira admin permissions to create/edit scripts
It’s complex!
most features require scripting knowledge
Automation for Jira
Created by Code Barrel
One of the top recommended apps in Atlassian’s marketplace
Code Barrel was acquired by Atlassian on Oct, 2019
Recently had been implemented in Jira Cloud as a built-in feature
Automation for Jira
Disadvantages:
• Advance functions has a learning curve
• Atlassian’s pricing can vary
Limited
You cannot do everything you wish to do in it
Especially when comparing to ScriptRunner that can do a lot!
Automation for Jira
Advantages:
• Any user in a project manager role can define automations
• Automations can be assigned to a single project or shared with many
• Easy debugging with mail notifications for every automation failure
Super Easy to use
Automation Process
Trigger
Filter
Action
Automation for Jira - Basic Functionalities
Trigger
Example:
Automation for Jira - Basic Functionalities
Filter
Example:
Tip!
Use “Related issues condition” if you want to filter by
parents/children data.
For example: continue automation if the parent epic of this
issue contains version “1.1” in the “fix version” field.
Automation for Jira - Basic Functionalities
Action
Example:
Automation for Jira - Basic Functionalities
Action
Example:
Automation for Jira - Basic Functionalities
Action
Example:
Automation for Jira - Basic Functionalities
Action
Rarely used but important actions:
Useful action when need to use a
value that was changed during the
same automation, see example:
X = 5
Y = 15 (3 times value of X)
During automation:
X  8
If we don’t use “re-fetch”:
Y  (5*3)=15
If we use “re-fetch”:
Y  (8*3) = 24
Useful actions when already using
ScriptRunner or using a listener
Automation for Jira - Basic Functionalities
Action
There is a possibility to use json
when editing issues.
2 cases that you would want to
use it:
1. When you are creating more
than 1 automation that should
edit the same fields or close to
the same fields
2. When the field you try to
change is not in the list of
fields
Automation for Jira - Advanced Functions
Smart Values
Smart Values
The ability to use fields values or part of them
For example:
Automation for Jira - Advanced Functions
Math Functions
Math Functions
Doing math calculation using fields values
For example:
Automation for Jira - Advanced Functions
Default Values
Default Values
Use default values in case a field is empty
May reduce failure of automations
For example:
| 0
Automation for Jira - Advanced Functions
And More…
Join values from a “list” field
Calculating time diff between 2
values
Converting a field into json format
Editing functions for text fields
And more…
{{issue.fixVersions.name.join(" - ")}}
// Produces “Version 2.0 – Version 3.0”
{{now.diff(issue.created).days}}
// Produces “3d 5h”
{{issue.fixVersions.name.asJsonObject("title").asJsonArray}}
// Produces
[{ "title": "Version 2.0" },{ "title": "Version 3.0" }]
{{issue.summary.toLowerCase().substring(0, 10).concat("!!")}}
Advanced Automation Process
Trigger
Filter
Action
Branch
Automation for Jira - Basic Functionalities
Branch Rule / Related Issues
• Enables editing related issues
and instead of the issue that
triggered the automation rule
• Can be used to copy data from
the trigger issue into the
related issues
Note!
Branch is not available on
“Automation for Jira – Server lite”
Automation for Jira
Automations
samples
Photo by Markus Spiske from Pex
Trigger
Filter
Branch
Filter on
branch
Action
Action Details
Trigger
with
query
Action 1
Action 2
Action 1 Details
Tips
Tips
1. Create an easy to view changes
When working on custom fields changes you may not always get the result
you expected. Use a dummy issue to check changes and make the change on
the “Description” field which is easy to view
2. Work Smart
If you are working with custom fields id’s, change the URL of the issue
From: <<URL>>/browse/YYY-123
To: <<URL>>/rest/api/2/issue/YYY-123
You’ll immediately get all the issue’s fields and ids.
Tips
3. Change a direction
Reached a dead end result? Throw away you line of thought and think of
a different way to approach the automation.
In most cases it works, in others not – the app is still a bit limited.
4. Recursion
You can create recursive automations, meaning: after one automation
rule run make a second automation rule run automatically.
(by default the option is disabled in the rule details to prevent infinite loop)
Automation for Jira
Available Options
• Jira Cloud:
• On basic plan you get total of 500 automation runs
• On premium plan you get 1000 automation runs for every paid user
• Purchasing – price is yet to be published (3 months free addiction)
• Jira Server / Data Center:
• Automation Lite – free plugin with restricted functionalities
• Full version – 30 days trial with full functionalities
Recommendations
Where should I start?
Good Luck!
Contact info:
Elad Ben-Noam
Elad @Agilesparks.com

More Related Content

What's hot

Introduction to JIRA
Introduction to JIRAIntroduction to JIRA
Introduction to JIRA
Rozi khan
 
Introduction To Jira Slide Share
Introduction To Jira Slide ShareIntroduction To Jira Slide Share
Introduction To Jira Slide Share
Renjith V
 
Using JIRA & Greenhopper for Agile Development
Using JIRA & Greenhopper for Agile DevelopmentUsing JIRA & Greenhopper for Agile Development
Using JIRA & Greenhopper for Agile Development
Jeff Leyser
 

What's hot (20)

Introduction to JIRA
Introduction to JIRAIntroduction to JIRA
Introduction to JIRA
 
Introduction to jira
Introduction to jiraIntroduction to jira
Introduction to jira
 
Agile practices using jira atlassian
Agile practices using jira atlassianAgile practices using jira atlassian
Agile practices using jira atlassian
 
Jira
JiraJira
Jira
 
JIRA System Admin Traning
JIRA System Admin Traning JIRA System Admin Traning
JIRA System Admin Traning
 
PantaRei Design Limited - JIRA Software Introduction - Project - Workflow - D...
PantaRei Design Limited - JIRA Software Introduction - Project - Workflow - D...PantaRei Design Limited - JIRA Software Introduction - Project - Workflow - D...
PantaRei Design Limited - JIRA Software Introduction - Project - Workflow - D...
 
JIRA Introduction | JIRA Tutorial | Atlassian JIRA Training | H2kinfosys
JIRA Introduction | JIRA Tutorial | Atlassian JIRA Training | H2kinfosysJIRA Introduction | JIRA Tutorial | Atlassian JIRA Training | H2kinfosys
JIRA Introduction | JIRA Tutorial | Atlassian JIRA Training | H2kinfosys
 
A New Introduction to Jira & Agile Product Management
A New Introduction to Jira & Agile Product ManagementA New Introduction to Jira & Agile Product Management
A New Introduction to Jira & Agile Product Management
 
Introduction To Jira Slide Share
Introduction To Jira Slide ShareIntroduction To Jira Slide Share
Introduction To Jira Slide Share
 
Jira Dashboards
Jira DashboardsJira Dashboards
Jira Dashboards
 
Introduction to JIRA & Agile Project Management
Introduction to JIRA & Agile Project ManagementIntroduction to JIRA & Agile Project Management
Introduction to JIRA & Agile Project Management
 
Everything You Need to Know about JIRA Core
Everything You Need to Know about JIRA CoreEverything You Need to Know about JIRA Core
Everything You Need to Know about JIRA Core
 
Jira fundamentals and bug tracking tool Guide
Jira fundamentals and bug tracking tool GuideJira fundamentals and bug tracking tool Guide
Jira fundamentals and bug tracking tool Guide
 
Using JIRA Software for Issue Tracking
Using JIRA Software for Issue TrackingUsing JIRA Software for Issue Tracking
Using JIRA Software for Issue Tracking
 
Introduction to Jira - Bug Tracking tool
Introduction to Jira - Bug Tracking toolIntroduction to Jira - Bug Tracking tool
Introduction to Jira - Bug Tracking tool
 
Using JIRA & Greenhopper for Agile Development
Using JIRA & Greenhopper for Agile DevelopmentUsing JIRA & Greenhopper for Agile Development
Using JIRA & Greenhopper for Agile Development
 
Jira Agile
Jira AgileJira Agile
Jira Agile
 
Jira as a Tool for Test Management
Jira as a Tool for Test ManagementJira as a Tool for Test Management
Jira as a Tool for Test Management
 
Jira 101
Jira 101Jira 101
Jira 101
 
JIRA
JIRAJIRA
JIRA
 

Similar to Automation in Jira for beginners

Similar to Automation in Jira for beginners (20)

DevOps for service desk automation
DevOps for service desk automationDevOps for service desk automation
DevOps for service desk automation
 
Toronto ACE Sept 2022.pptx
Toronto ACE Sept 2022.pptxToronto ACE Sept 2022.pptx
Toronto ACE Sept 2022.pptx
 
AUG NYC Presentation Feb 13 Event
AUG NYC Presentation Feb 13 EventAUG NYC Presentation Feb 13 Event
AUG NYC Presentation Feb 13 Event
 
Jira for Agile Project Management.pptx
Jira for Agile Project Management.pptxJira for Agile Project Management.pptx
Jira for Agile Project Management.pptx
 
APEX Office Hours Interactive Grid Deep Dive
APEX Office Hours Interactive Grid Deep DiveAPEX Office Hours Interactive Grid Deep Dive
APEX Office Hours Interactive Grid Deep Dive
 
Agile-plus-DevOps Testing for Packaged Applications
Agile-plus-DevOps Testing for Packaged ApplicationsAgile-plus-DevOps Testing for Packaged Applications
Agile-plus-DevOps Testing for Packaged Applications
 
Connector Corner: How Jira-and Open AI-support service issues in multiple la...
Connector Corner: How Jira-and Open AI-support service issues in multiple  la...Connector Corner: How Jira-and Open AI-support service issues in multiple  la...
Connector Corner: How Jira-and Open AI-support service issues in multiple la...
 
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
 
Migrating Lotus Notes Applications to Sharepoint Online with Nintex
Migrating Lotus Notes Applications to Sharepoint Online with NintexMigrating Lotus Notes Applications to Sharepoint Online with Nintex
Migrating Lotus Notes Applications to Sharepoint Online with Nintex
 
Testing for Logic App Solutions | Integration Monday
Testing for Logic App Solutions | Integration MondayTesting for Logic App Solutions | Integration Monday
Testing for Logic App Solutions | Integration Monday
 
Developing for the Atlassian Ecosystem
Developing for the Atlassian EcosystemDeveloping for the Atlassian Ecosystem
Developing for the Atlassian Ecosystem
 
Kill Administrator: Fighting Back Against Admin Rights
Kill Administrator: Fighting Back Against Admin RightsKill Administrator: Fighting Back Against Admin Rights
Kill Administrator: Fighting Back Against Admin Rights
 
Jira for DevOps - Loves Cloud
Jira for DevOps - Loves CloudJira for DevOps - Loves Cloud
Jira for DevOps - Loves Cloud
 
Use of Jira Confluence as Project Management Tool
Use of Jira Confluence as Project Management ToolUse of Jira Confluence as Project Management Tool
Use of Jira Confluence as Project Management Tool
 
Selenium training in chennai
Selenium training in chennaiSelenium training in chennai
Selenium training in chennai
 
Boost your App with Gatling
Boost your App with GatlingBoost your App with Gatling
Boost your App with Gatling
 
The Top 5 Skills Enterprise Admins Need to Know
The Top 5 Skills Enterprise Admins Need to KnowThe Top 5 Skills Enterprise Admins Need to Know
The Top 5 Skills Enterprise Admins Need to Know
 
Denver Atlassian Community 5-minute Plugins
Denver Atlassian Community 5-minute PluginsDenver Atlassian Community 5-minute Plugins
Denver Atlassian Community 5-minute Plugins
 
Making software development processes to work for you
Making software development processes to work for youMaking software development processes to work for you
Making software development processes to work for you
 
Rapise Overview Presentation (2019)
Rapise Overview Presentation (2019)Rapise Overview Presentation (2019)
Rapise Overview Presentation (2019)
 

Recently uploaded

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Recently uploaded (20)

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 

Automation in Jira for beginners

  • 1. Automating Jira Elad Ben-Noam Agile Tools Consultant @AgileSparks
  • 2. AgileSparks 2 | ❖ We help companies improve by adopting agile principles and practices ❖ We provide training and coaching to all organizational levels, from high management to developers ❖ Our team consists of Agile professionals with diverse expertise ❖ Global solutions – US, Israel, India
  • 4. What pops when you think of Automation? All these apps are relevant when our goal is to connect 2 separate apps
  • 5. Integrations Integrating these apps is relevant when our goal is to create a sync between Jira’s data and the other apps data
  • 6. What are we going to talk about? • Helping teams become more productive • Cataloging issues for quicker search • Achieving much more details about the issues life cycle • Making the tool work for the users Individuals and interactions over processes and tools From the Agile Manifesto
  • 7. Automating (within) Jira ScriptRunner Power Scripts Automation for Jira Jira Plugin
  • 8. • Big data of API commands to monitor/change almost anything in Jira • Ability to create JQL* queries, with some scripting even recursive queries • For example: query to find all epics with certain component and afterwards a query to get all the children of those epics • Ready to use “Postman Collections” with all REST API commands • Provides some operations that are not allowed from the Jira UI • Easy commands with user/password to get data (cloud: email/API key) • Important Note: there are 2 different versions of API: • Server / Data Center versions uses up to version 2 • Cloud uses up to version 3 * JQL - Jira Query Language
  • 9. There are 3 ways of operating with Jira’s REST API: 1. Operating a script only when needed 2. Operating a script by schedule (daily/every hour/etc.) 3. Operating scripts by a listener
  • 10. Webhooks Webhooks enables you to get notifications about changes in Jira once it happens. For example: you can get a notification for creation / editing / deletion of issues / sprint / boards and more. To get the data you need to setup a listener to receive the data and operate the script.
  • 11. • Operates from within Jira • Available for both Server and Cloud versions: • For cloud you must upload the plugin to the marketplace and define as private • Jira’s code is in Java and that’s the preferred plugin language • Today’s tools allows you to create with different language and transform the code to Java • Different from REST API way, a plugin can change the process itself Jira Plugin
  • 13. Traditional Scripting Apps Advantages: • Scripts with variety of functions • Built-in scripts that enables quick functionalities • Built-in advanced JQL functions • Enhanced workflow conditions and validations
  • 14. Traditional Scripting Apps Disadvantages: • Must have a Jira admin permissions to create/edit scripts It’s complex! most features require scripting knowledge
  • 15. Automation for Jira Created by Code Barrel One of the top recommended apps in Atlassian’s marketplace Code Barrel was acquired by Atlassian on Oct, 2019 Recently had been implemented in Jira Cloud as a built-in feature
  • 16. Automation for Jira Disadvantages: • Advance functions has a learning curve • Atlassian’s pricing can vary Limited You cannot do everything you wish to do in it Especially when comparing to ScriptRunner that can do a lot!
  • 17. Automation for Jira Advantages: • Any user in a project manager role can define automations • Automations can be assigned to a single project or shared with many • Easy debugging with mail notifications for every automation failure Super Easy to use
  • 19. Automation for Jira - Basic Functionalities Trigger Example:
  • 20. Automation for Jira - Basic Functionalities Filter Example: Tip! Use “Related issues condition” if you want to filter by parents/children data. For example: continue automation if the parent epic of this issue contains version “1.1” in the “fix version” field.
  • 21. Automation for Jira - Basic Functionalities Action Example:
  • 22. Automation for Jira - Basic Functionalities Action Example:
  • 23. Automation for Jira - Basic Functionalities Action Example:
  • 24. Automation for Jira - Basic Functionalities Action Rarely used but important actions: Useful action when need to use a value that was changed during the same automation, see example: X = 5 Y = 15 (3 times value of X) During automation: X  8 If we don’t use “re-fetch”: Y  (5*3)=15 If we use “re-fetch”: Y  (8*3) = 24 Useful actions when already using ScriptRunner or using a listener
  • 25. Automation for Jira - Basic Functionalities Action There is a possibility to use json when editing issues. 2 cases that you would want to use it: 1. When you are creating more than 1 automation that should edit the same fields or close to the same fields 2. When the field you try to change is not in the list of fields
  • 26. Automation for Jira - Advanced Functions Smart Values Smart Values The ability to use fields values or part of them For example:
  • 27. Automation for Jira - Advanced Functions Math Functions Math Functions Doing math calculation using fields values For example:
  • 28. Automation for Jira - Advanced Functions Default Values Default Values Use default values in case a field is empty May reduce failure of automations For example: | 0
  • 29. Automation for Jira - Advanced Functions And More… Join values from a “list” field Calculating time diff between 2 values Converting a field into json format Editing functions for text fields And more… {{issue.fixVersions.name.join(" - ")}} // Produces “Version 2.0 – Version 3.0” {{now.diff(issue.created).days}} // Produces “3d 5h” {{issue.fixVersions.name.asJsonObject("title").asJsonArray}} // Produces [{ "title": "Version 2.0" },{ "title": "Version 3.0" }] {{issue.summary.toLowerCase().substring(0, 10).concat("!!")}}
  • 31. Automation for Jira - Basic Functionalities Branch Rule / Related Issues • Enables editing related issues and instead of the issue that triggered the automation rule • Can be used to copy data from the trigger issue into the related issues Note! Branch is not available on “Automation for Jira – Server lite”
  • 35. Tips
  • 36. Tips 1. Create an easy to view changes When working on custom fields changes you may not always get the result you expected. Use a dummy issue to check changes and make the change on the “Description” field which is easy to view 2. Work Smart If you are working with custom fields id’s, change the URL of the issue From: <<URL>>/browse/YYY-123 To: <<URL>>/rest/api/2/issue/YYY-123 You’ll immediately get all the issue’s fields and ids.
  • 37. Tips 3. Change a direction Reached a dead end result? Throw away you line of thought and think of a different way to approach the automation. In most cases it works, in others not – the app is still a bit limited. 4. Recursion You can create recursive automations, meaning: after one automation rule run make a second automation rule run automatically. (by default the option is disabled in the rule details to prevent infinite loop)
  • 38. Automation for Jira Available Options • Jira Cloud: • On basic plan you get total of 500 automation runs • On premium plan you get 1000 automation runs for every paid user • Purchasing – price is yet to be published (3 months free addiction) • Jira Server / Data Center: • Automation Lite – free plugin with restricted functionalities • Full version – 30 days trial with full functionalities
  • 40. Where should I start?
  • 41. Good Luck! Contact info: Elad Ben-Noam Elad @Agilesparks.com

Editor's Notes

  1. אנחנו לא הולכים לדבר על הכלים האלה.