Professional Documents
Culture Documents
Jira Workflows
- Cloud
Lab Workbook
Getting More from Jira Workflows - Cloud Copyright © 2020 Atlassian
Table of Contents
Introduction ........................................................................................................................................................................ i
Lab 1 – Course Overview ........................................................................................................................................... 1
There is no lab for this module. .............................................................................................................. 1
Lab 2 – Covering the Basics................................................................................................................................... 3
Exercise 1 – Exploring Workflow ........................................................................................................... 3
Exercise 2 – Updating a Workflow Scheme................................................................................ 13
Lab 2 Appendix ................................................................................................................................................ 19
Lab 3 – Creating Conditions & Validators ................................................................................................. 21
Scenario ................................................................................................................................................................ 21
Exercise 1 – Adding Conditions............................................................................................................. 21
Exercise 2 – Adding Validators ............................................................................................................ 27
Optional Exercise 3 – Troubleshooting a Workflow Problem ...................................... 32
Lab 3 Appendix ................................................................................................................................................ 41
Lab 4 – Creating Post Functions ..................................................................................................................... 43
Scenario ............................................................................................................................................................... 43
Exercise 1 – Setting the Resolution in Post Functions ....................................................... 43
Exercise 2 – Copying Field Values in Post Functions ..........................................................47
Lab 4 Appendix ................................................................................................................................................ 51
Lab 5 –Triggering Transitions ............................................................................................................................ 53
There is no lab for this module. .......................................................................................................... 53
Lab 5 Appendix ............................................................................................................................................... 53
Lab 6 – Extending Workflows with Properties .................................................................................... 55
Scenario ............................................................................................................................................................... 55
Exercise 1 – Restricting Actions in Statuses .............................................................................. 55
Exercise 2 – Viewing Properties in the Jira Workflow........................................................ 62
Lab 6 Appendix ............................................................................................................................................... 64
Lab 7 –Taking It to the Next Level ................................................................................................................. 67
Scenario ............................................................................................................................................................... 67
Exercise 1 – Adding Approval to a Workflow ............................................................................ 67
Exercise 2 – Adding Rejection to a Workflow ........................................................................... 77
Optional Exercise 3 – Share a Workflow .....................................................................................80
Lab 7 Appendix ............................................................................................................................................... 83
There are also appendices, which you don’t need during class. They are full of
useful information like additional reading and best practices. Dig into this section
after class!
You'll log in as various users throughout the course. Here's a list of the users and
what role they'll have.
Name Role
Alana Grant Jira administrator
William Smith Project administrator
Jennifer Evans Developer
Harvey Jennings Content Manager
Ryan Lee Site administrator
To log in during the labs you'll need each user's email address and the password.
You should have received this information after registering for the course.
The password for every account you use in these labs is the same. Keep this
password easily accessible.
You should have also received your assigned site URL. Make a note of this.
When switching between products in these labs, you'll be able to see other
sites. It's important that you choose the product on the site that's been
assigned to you.
The language you see in the Atlassian product UI is set to your browser's language.
If you wish to see the UI in English (to match the lab instructions), or in a different
language, go to your Atlassian product user profile and edit your preferences.
Because the Cloud products are constantly being updated with new features, you
may see some slight differences between the instructions in this lab workbook
and the product you are using.
In the second exercise, you view a simplified workflow. Then you add that
workflow to the Teams in Space workflow scheme so it can be used by certain
issue types.
It's important you log into the site that's been assigned to you.
Bookmark this address to save you time later when logging in as
other users.
What role does the project admin need to configure this board?
To add more board administrators, simply edit this list here and add
users.
Here you see how the workflow statuses map to the board’s
columns. By default, the column names will be the same as the
status names. But the project admin could rename the column
headings if they wished. You may want to do this if the underlying
status name is not very intuitive. We’ll do this a bit later in the
exercise.
c. In these labs you'll log in and out as various users. To lessen the
amount of logging in and out, use different browser windows.
However, you can't just open a new tab and log in as another user,
as your original tab will be logged in as that user too. You have a
few options:
i. Open an incognito/private window in your current browser.
ii. Open a separate browser if you have another one installed.
For example, if you're using Google Chrome, open Firefox.
iii. Log out as the current user by clicking their avatar at the
bottom of the global sidebar. This method will require a lot of
logging in and out!
To simplify the instructions, when you need to log in as another user,
we'll tell you to use your incognito window, but use the method that
works for you.
Be careful when renaming statuses as this will affect any filters created
using the existing status. Ensure everyone is aware of the change.
Ensure your status and transition names are intuitive. People should
never have to wonder what a status means or which workflow
transition to use next.
a. Since only Jira admins can access Jira administration and update
statuses, open a new incognito browser window, go to your site URL
and log in as Alana Grant.
b. On the Jira administration Statuses page, note the Category column.
g. Confirm the step name and the linked status name are now the
same.
h. Publish the draft workflow to make it active (saving a backup copy if
you wish).
Each time you publish a draft workflow you’re given the option to
create a backup copy. This is a good idea if you want to save the
original workflow for later re-use or if you’re making a lot of changes
and you may need to roll them back.
You can disable the View Workflow link in issues by removing users
(ideally by using project roles) from the View Read-Only Workflow
permission in the permission scheme used by the project.
Detailed Instructions
1. View the Teams in Space workflow:
a. Go to your site URL and log in as William Smith, the Teams in Space
project admin. Use the email address that corresponds to his name
and the password that you should have received.
It's important you log into the site that's been assigned to you.
Bookmark this address to save you time later when logging in as
other users.
From here the project admin can view the workflow as text or
diagram. Click diagram on the Workflows page.
Answer: To see the transition names, mouse over lines between the
statuses. You can see that the Ready for review transition runs from
IN PROGRESS to INSPECTION and the Code review failed transition
What role does the project admin need to configure this board?
To add more board administrators, simply edit this list here and add
Here you see how the workflow statuses map to the board’s
columns. By default, the column names will be the same as the
status names. But the project admin could rename the column
headings if they wished. You may want to do this if the underlying
status name is not very intuitive. We’ll do this a bit later in the
exercise.
He can add columns to the board. Can he add statuses? If not, why
not?
c. In these labs you'll log in and out as various users. To lessen the
amount of logging in and out, use different browser windows.
However, you can't just open a new tab and log in as another user,
as your original tab will be logged in as that user too. You have a
few options:
i. Open an incognito/private window in your current browser.
ii. Open a separate browser if you have another one installed.
For example, if you're using Google Chrome, open Firefox.
iii. Log out as the current user by clicking their avatar at the
bottom of the global sidebar. This method will require a lot of
logging in and out!
To simplify the instructions, when you need to log in as another user,
we'll tell you to use your incognito window, but use the method that
works for you.
Be careful when renaming statuses as this will affect any filters created
using the existing status. Ensure everyone is aware of the change.
Ensure your status and transition names are intuitive. People should never
a. Since only Jira admins can access Jira administration and update
statuses, open a new incognito browser window, go to your site URL
and log in as Alana Grant. Use the email address that corresponds
to his name and the password that you should have received.
b. To quickly navigate to the Statuses page, type a period/full stop (.) or
gg then type statuses and press return to select Statuses. (Or you
can click Settings (cog icon) in the menu and go to Issues then
Statuses.)
c. On the Statuses page, note the Category column.
Each time you publish a draft workflow you’re given the option to
create a backup copy. This is a good idea if you want to save the
original workflow for later re-use or if you’re making a lot of changes
and you may need to roll them back.
b. Configure the board by clicking … > Board settings at the top right
corner.
c. On the Column Management page, click the column name
Inspection and change it to In Code Review.
d. Return to the board (click Back to board) and confirm it now has the
new heading.
e. Open one of the issues in this column.
f. Note the IN CODE REVIEW status shown in the issue. Open the
Status menu and select View Workflow.
You can disable the View Workflow link in issues by removing users
(ideally by using project roles) from the View Read-Only Workflow
permission in the permission scheme used by the project.
This workflow was copied from a Scrum Software project. It’s the
default workflow for that type of project.
c. Note that you can directly edit an inactive workflow. Don’t make any
changes here.
Note the 0 next to each issue type which indicates there are no
issues currently in the IN CODE REVIEW status.
b. View the board and confirm you see the new issue on the board.
Which columns on the board should you be able to drag it to? Test
by dragging the issue over the other columns but leave it in the To
Do column.
Answer: You can drag the new issue to the In Progress or Done
column. You cannot drag it to the In Code Review because that
status is not in the workflow that this issue, a Task, is using.
Which column(s) on the board should you be able to drag the story
(TIS-84) in the To Do column to? Test by dragging the story over the
other columns but leave it in the To Do column.
Detailed Instructions
1. View a simplified workflow:
a. Continuing as the Jira admin, Alana Grant, navigate to the
Workflows Jira administration page.
b. Expand the Inactive section at the bottom of the page and edit the
Scrum Software Simplified Workflow. Click Diagram to view it in
diagram mode.
This workflow was copied from a Scrum Software project. It’s the
default workflow for that type of project.
Answer: Because the transition ids are identical for each step. For
example, the In Progress transition has the id of 21 in each step.
d. Note that you can directly edit an inactive workflow. Don’t make any
changes here.
Only certain issue types in the Teams in Space project need to follow
the TIS DEV workflow. For example, simple tasks such as editing a
design spec don’t need to go through code review. These tasks can use
the Scrum Software Simplified Workflow.
d. Click Add Workflow in the top left corner and select Add Existing.
e. Select Scrum Software Simplified Workflow then click Next.
f. The only issue types that need to use the TIS DEV workflow and go
through code review are Bug and Story. Select the three remaining
issue types for this project – Epic, Sub-task, and Task - to use the
simplified workflow. Click Finish.
g. Confirm the Teams in Space workflow scheme now looks like this:
Note the 0 next to each issue type which indicates there are no
issues currently in the IN CODE REVIEW status.
You can also update the Teams in Space workflow scheme from the
Jira administration pages.
Which columns on the board should you be able to drag it to? Test
by dragging the issue over the other columns but leave it in the To
Do column.
Answer: You can drag the new issue to the In Progress or Done
column. You cannot drag it to the In Code Review because that
status is not in the workflow that this issue, a Task, is using.
Which column(s) on the board should you be able to drag the story
(TIS-84) in the To Do column to? Test by dragging the story over the
other columns but leave it in the To Do column.
c. Close the window and open one of the other issues on the board in
the To Do column. Confirm you see only the Start progress transition
button.
d. Click the View Workflow link and confirm you see the TIS DEV
workflow.
Further Reading
Reference URL
Workflows http://go.atlassian.com/cloud_workflows
Best Practices
Workflows are Suddenly users are not able Only Jira admins can
performing in to transition issues to In fully edit workflows.
unexpected and Progress. This is because an Ensure that the users
incorrect ways. inexperienced user edited the who have this
transition in the workflow permission are aware of
and made a mistake. workflow editing best
practices.
Users don’t A writer has created a draft Ensure your status and
understand what document and wants to send transition names are
a status means it for review. In the issue, they intuitive. People should
or which see two transition buttons never have to wonder
workflow ‘Submit’ and ‘Send’. They are what a status means or
transition to use. confused about which one to which workflow
use. transition to use next.
You also create a validator that requires a comment when an issue has failed code
review and is sent back to the developer for more work. This is so the reviewer can
enter the reason for failure. To do this you add a simple transition screen.
You perform these tasks as the Jira admin as they’re the only ones that can add
conditions and validators to workflows.
If we want to ensure only the right people can submit issues for code
review, which transition should we add the conditions to?
Answer: To ensure only the right people can submit issues for code
review, you would add the transitions to the Ready for review
transition.
c. Edit the Ready for review transition and view the available
conditions.
d. Add a condition that the user has to be EITHER the project admin OR
user is (the assignee AND in the Developers role).
Add the project admin condition first as you need to have at least
one existing condition before you can create a grouped condition.
And ensure you change the outer condition (at the top) to be Any of
the following conditions.
Answer: Alana Grant has the Developers role. She also has the
Administrators role as she’s a member of the jira-administrators
group. Jennifer Evans has the Developers role. And Harvey Jennings
doesn’t have any roles in this project.
b. Open the issue, TIS-85 and verify it’s using the TIS DEV workflow.
Can Alana see the Ready for review transition button? If so, why and
if not, why not?
Can Harvey see the Ready for review transition button? If so, why and if
not, why not?
Answer: No, the Ready for review transition button is not visible. Harvey
cannot execute this transition because he’s not a member of the
project’s Administrators or Developers roles, nor the assignee.
Can Jennifer see the Ready for review transition button? If so, why and
if not, why not?
Answer: Yes, the Ready for review transition button is visible to Jennifer.
She can execute this transition because she’s a member of the project’s
Developers role and she’s the assignee.
g. Confirm Jennifer can execute the Ready for review transition. Now
you see the issue is in the IN CODE REVIEW status.
h. Optionally, view the project’s board and confirm TIS-85 has moved to
the In Code Review column.
If we want to ensure only the right people can submit issues for code
review, which transition should we add the conditions to?
Answer: To ensure only the right people can submit issues for code
review, you would add the conditions to the Ready for review
transition.
d. Click the Ready for review transition and then click the Conditions
link to add conditions to this transition.
e. On the Conditions tab of the transition page, click Add condition and
view the available conditions.
f. First, we’ll add the project admin condition as you need to have at
least one existing condition before you can create a grouped
condition. Select User Is In Project Role and click Add.
g. Now you see the first condition. Click Add condition to add the
second one which will be a grouped condition.
i. Select Only Assignee Condition and click Add.
If you left your condition like this, who could transition issues?
Answer: As both the grouped and outer condition are using All of the
following conditions the user would have to meet all three of them.
They would have to be the assignee and also be in both the
Developers and Administrators roles. This is too restrictive for our
requirement.
i. Change the outer condition (at the top) to be Any of the following
conditions. Now the user can be EITHER the assignee and a
developer OR a project admin.
2. Publish draft:
a. To publish the draft workflow and make it active, click Publish Draft.
b. Select Yes to save a backup copy then click Publish.
c. Your changes are now active. See the ACTIVE indicator next to the
workflow name.
Answer: Alana Grant has the Developers role. She also has the
Administrators role as she’s a member of the jira-administrators
group. Jennifer Evans has the Developers role. And Harvey Jennings
doesn’t have any roles in this project.
Can Harvey see the Ready for review transition button? If so, why and if
not, why not?
Answer: No, the Ready for review transition button is not visible. Harvey
cannot execute this transition because he’s not a member of the
project’s Administrators or Developers roles, nor the assignee.
Can Jennifer see the Ready for review transition button? If so, why and
if not, why not?
Answer: Yes, the Ready for review transition button is visible to Jennifer.
She can execute this transition because she’s a member of the project’s
Developers role and she’s the assignee.
i. Click the Ready for review transition button and confirm Jennifer can
execute the transition. Now you see the issue is in the IN CODE
REVIEW status.
j. Optionally, view the project’s board and confirm TIS-85 has moved to
the In Code Review column.
k. Log out as Jennifer.
Currently the TIS DEV workflow doesn’t have any transition screens.
Since we want to make a comment mandatory when transitioning an
issue back to the developer from code review, we first need to create a
screen.
Detailed Instructions
1. Create a transition screen:
Currently the TIS DEV workflow doesn’t have any transition screens.
Since we want to make a comment mandatory when transitioning an
issue back to the developer from code review, we first need to create a
screen.
d. On the Configure Screen page, don’t add any fields to the screen.
d. Click Add.
e. On the Add Parameters to Validator page, select Comment from the
Available fields list and click Add>>. Now you should see Comment in
the Required fields list. Click Add.
You now see your validator set to require the Comment field for the
Code review failed transition.
What controls who can access this project and what they can do
within the project?
Answer: The permission scheme controls who can access this project
and what they can do within the project.
c. Open the Default Permission Scheme and view the permissions for
Close Issues and Resolve Issues.
Who can close and resolve issues in each project that uses this
scheme?
Who can transition issues in each project that uses this scheme?
Answer: Yes, Harvey did successfully close the issue. If you open the
issue the status is DONE.
f. Troubleshoot this issue and try to figure out why Harvey can close
issues in this project. Then fix the problem by editing the workflow.
There’s a hint on the next page and the answer is on the page after
that.
Did you notice anything else that needs to be fixed? And if so, how?
If you wish to troubleshoot this in Jira, you’ll need to log in as Alana
Grant.
Answer: Harvey can still drag this issue to In Progress. If you only
wanted Developers in the project to move issues on the board you
could resolve that in a couple of ways. You could edit the permission
scheme and limit the Transition Issues permission to the Developers
project role (currently it’s set to Users.) But what could be a problem
with doing this?
What controls who can access this project and what they can do
within the project?
Answer: The permission scheme controls who can access this project
and what they can do within the project.
Who can close and resolve issues in each project that uses this
scheme?
Who can transition issues in each project that uses this scheme?
Answer: Yes, Harvey did successfully close the issue. If you open the
issue the status is DONE.
h. Troubleshoot this issue and try to figure out why Harvey can close
issues in this project. Then fix the problem by editing the workflow.
There’s a hint on the next page and the answer is on the page after
that.
Did you notice anything else that needs to be fixed? And if so, how?
If you wish to troubleshoot this in Jira, you’ll need to log in as Alana
Grant.
Answer: Harvey can still drag this issue to In Progress. If you only
wanted Developers in the project to move issues on the board you
could resolve that in a couple of ways. You could edit the permission
scheme and limit the Transition Issues permission to the Developers
project role (currently it’s set to Users.) But what could be a problem
with doing this?
Further Reading
Reference URL
Best Practices
Users from one Your Sales, Marketing, and Use project roles over
project can do HR projects share the groups, in your conditions
things in other same workflow. In that and validators. This allows
projects they workflow, there’s a you to share workflows
shouldn’t be able transition that only (and conditions/validators)
to. Or, you have to Managers in those projects across multiple projects
create separate can perform. You want to and have different users
groups for every use a group in the meet or fail the
project to use in condition. Either, you need condition/validator
conditions and to have one global depending on their
validators. And Managers group to use or
Also, you create another pair of post functions that copy field values. One copies
the assignee to the Developer field when an issue is sent for code review. The
second post function will reassign the issue back to the developer if an issue fails
code review.
You perform these tasks as the Jira admin as they’re the only ones that can add
post functions to workflows.
It’s very important to have the resolution set when an issue is complete.
If you don't set a resolution on the final transition, then the issue isn't
considered resolved by all the Jira reports. This can be accomplished by
either having the user enter a resolution in a final transition screen or
having it set in a post function.
Answer: The resolution is set when the issue is done. The transition
going into DONE is Code review passed. So, set the resolution on this
Code review passed transition. Note that some workflows are
already set up to set the resolution. For example, the Scrum
software simplified workflow that’s the default workflow for Scrum
projects is already set up to set the resolution when an issue is done
and clear it when an issue is reopened.
Answer: You can actually use one of two post functions. Either the
Clear Field Value post function or the Update Issue Field post
function. We’ll use the Update Issue Field post function in this lab.
c. Add the Update Issue Field post function. Set it to update the
Resolution field with the value None.
d. Publish the draft workflow and save a backup copy if you wish.
Why does TIS-85 have a line through its issue key and TIS-87 does
not?
Answer: When an issue has been resolved (its Resolution field has
been set), Jira displays its issue key with a line through it. Even
though TIS-87 is in the Done column its Resolution has not been set
because it was placed there before the post transition to set
resolution was added to its workflow. So even though it’s status is
DONE, the issue is not resolved as far as Jira is concerned and it will
not show up as resolved in any Jira report. Optionally, you can fix this
by dragging TIS-87 back to To Do then through each of the columns
in turn until it’s back to Done. Now it should have a line through the
Reopen TIS-85 and confirm the Resolution field is now Unresolved, the
status is TO DO, and there’s no longer a line through the issue key.
Detailed Instructions
1. Create a post function to set the resolution:
It’s very important to have the resolution set when an issue is complete.
If you don't set a resolution on the final transition, then the issue isn't
considered resolved by all the Jira reports. This can be accomplished by
either having the user enter a resolution in a final transition screen or
having it set in a post function.
Answer: The resolution is set when the issue is done. The transition
going into DONE is Code review passed. So, set the resolution on this
Code review passed transition. Note that some workflows are
already set up to set the resolution. For example, the Scrum
software simplified workflow that’s the default workflow for Scrum
projects is already set up to set the resolution when an issue is done
and clear it when an issue is reopened.
c. Select the Code review passed transition and click the Post
Functions link.
d. Note the essential post functions that are performed by default for
this transition. Click Add post function.
e. Select the Update Issue Field post function and click Add.
f. On the Add Parameters To Function page, select Resolution for the
field to change and Done for the field value. Click Add.
Answer: You can actually use one of two post functions. Either the
Clear Field Value post function or the Update Issue Field post
function. We’ll use the Update Issue Field post function in this lab.
c. Select the Update Issue Field post function and click Add.
d. On the Add Parameters To Function page, select Resolution for the
field to change and None for the field value. Click Add.
e. Confirm you see your new post function clearing resolution.
f. Publish the draft workflow and save a backup copy if you wish.
Why does TIS-85 have a line through its issue key and TIS-87 does
not?
Answer: When an issue has been resolved (its Resolution field has
been set), Jira displays its issue key with a line through it. Even
though TIS-87 is in the Done column its Resolution has not been set
because it was placed there before the post transition to set
resolution was added to its workflow. So even though it’s status is
DONE, the issue is not resolved as far as Jira is concerned and it will
not show up as resolved in any Jira report. Optionally, you can fix this
by dragging TIS-87 back to To Do then through each of the columns
in turn until it’s back to Done. Now it should have a line through the
issue key.
Here you add a post function to the Ready for review transition that will
copy the value of the Assignee field to the Developer field. At Teams In
Space, they always want to know what developer actually implemented
the code change but when the issue goes through code review the reviewer
reassigns the issue to themselves.
Here you add a post function to the Code review failed transition that will
copy the value of the Developer field to the Assignee field and so reassign
the issue back to the original developer.
a. Add a post function to the Code review failed transition that copies
the value from the Developer (User Picker (single user)) field to the
Assignee field.
b. Publish the draft workflow and save a backup copy if you wish.
Detailed Instructions
1. Create a post function to copy the value of Assignee to another field:
Here you add a post function to the Ready for review transition that will
copy the value of the Assignee field to the Developer field. At Teams In
Space, they always want to know what developer actually implemented
the code change but when the issue goes through code review the reviewer
reassigns the issue to themselves.
e. Confirm you now see the new post function to copy the value from
Assignee to Developer.
Here you add a post function to the Code review failed transition that will
copy the value of the Developer field to the Assignee field and so reassign
the issue back to the original developer.
e. Confirm you now see the new post function to copy the value from
Developer to Assignee.
f. Publish the draft workflow and save a backup copy if you wish.
Further Reading
Reference URL
Adding a http://go.atlassian.com/cloud_custom_event
custom event
Workflows http://go.atlassian.com/wfts
troubleshooting
Best Practices
Reports are not Your reports are showing It’s very important to have
correct. that no issues were the resolution set when an
resolved when some issue is complete. If you
issues were resolved. This don't set a resolution on
is because the resolution the final transition, then
was not being set on the the issue isn't considered
final transition. resolved by all the Jira
reports. This can be
accomplished by either
having the user enter a
resolution in a final
transition screen or having
it set in a post function.
Operations are You have the post function Ensure post functions are
not being that indexes an issue in the correct order.
performed before the post function
correctly in post that updates a field. So,
functions. the change is not in the
latest search index.
Actions in one You have two projects Ensure your post functions
project’s using a software won’t impact other
workflow are development workflow. workflows or projects.
causing You update the post
Lab 5 Appendix
Further Reading
Reference URL
Configuring http://go.atlassian.com/cloud_wftriggers
Workflow Triggers
(including
Troubleshooting
Triggers)
Best Practices
You perform these tasks as the Jira admin as they’re the only ones that can add
properties to workflows.
Before we update the delete and edit permissions for the Done status using
properties, let’s view the project permissions.
Who can delete and edit issues in each project that uses this
scheme?
We’re going to restrict who can delete and who can edit issues once
they’re done. Why wouldn’t we just update the permission scheme
and restrict the Delete Issues and Edit Issues permissions instead of
adding properties?
If you don’t see the status bar at the bottom of your browser
window, you may need to activate it. Each browser is
different but check your view options and ensure that Status
Bar is checked.
Here we restrict editing done issues to just Jira admins. Recall from
viewing the permission scheme earlier that project admins and
members of the Developers project role can edit issues. We verified
that as a developer, Jennifer.
Will these new restrictions apply to all issue types in this project?
Answer: No, recall that only stories and bugs use the TIS DEV
workflow. Other issues types use the Scrum Software Simplified
Workflow. We just want the restrictions for stories and bugs so
we’re only editing the TIS DEV workflow.
Before we update the delete and edit permissions for the Done status using
properties, let’s view the project permissions.
Who can delete and edit issues in each project that uses this
scheme?
We’re going to restrict who can delete and who can edit issues once
they’re done. Why wouldn’t we just update the permission scheme
and restrict the Delete Issues and Edit Issues permissions instead of
adding properties?
If you don’t see the status bar at the bottom of your browser
window, you may need to activate it. Each browser is
g. Return to the workflow (click workflow steps) and publish your draft.
h. Verify your new property:
i. Open issue TIS-87 and confirm Alana can still see the Delete
option under More.
Here we restrict editing done issues to just Jira admins. Recall from
viewing the permission scheme earlier that project admins and
members of the Developers project role can edit issues. We verified
that as a developer, Jennifer.
Will these new restrictions apply to all issue types in this project?
Answer: No, recall that only stories and bugs use the TIS DEV
workflow. Other issues types use the Scrum Software Simplified
Workflow. We just want the restrictions for stories and bugs so
we’re only editing the TIS DEV workflow.
Assuming you didn’t want closed issues to be edited by users, when might
you not want to do this?
Answer: When you want the option for Jira admins to edit closed issues by
using Bulk Edit. For example, company X wasn’t using versions when they
started with Jira, just another custom field. At some point, they decide to
use the feature and want to add versions to issues that shipped a long time
ago. Or perhaps a project is splitting or consolidating components or
versions or adding new labels, components etc. This helps with reporting
and organizing issues.
Further Reading
Reference URL
Best Practices
Here you take a basic content management workflow and transform it into a
workflow that fits the needs of the business by adding a reusable approvals and
rejection process.
For this lab, we encourage you do follow the high-level instructions. There we give
the requirements and you decide out how to implement them in Jira.
You perform these tasks as the Jira admin as they’re the only ones that can
perform advanced workflow editing.
High-level Requirements:
The current Marketing workflow (Content Management) is shown below. They
now require blogs to be approved before they’re published. Even though this
workflow is fairly simple, the Jira admin wants to keep workflows as simple as
possible so the approval should be implemented without adding any new
statuses. Also, HR shares this workflow and does not require approval so any
changes should not affect the HR workflow.
Detailed Instructions
1. Set up for editing the workflow:
Before editing workflows, plan your changes and think about all the Jira
resources that you’ll be using in conditions, etc. This will make the actual
editing of the workflow much faster and easier.
Use flags to mark issues for easy filtering on certain criteria or to restrict
issues of a certain criteria from being transitioned. Here we’ll use the
Approval flag as an alternative to a new status and to restrict when a blog
can be published.
iii. Now you choose the screens to have this field appear on. On
the Associate field Approved to screens page, scroll down to
the rows for the Marketing project screens:
• Marketing Create Issue Screen
• Marketing Edit Issue Screen
• Marketing Resolve Issue Screen
• Marketing View Issue Screen
d. Confirm you see the new Approved flag on the Custom fields page.
How many workflows are used in this project and what issue types
do they apply to?
Answer: Two workflows are used in the Marketing project. The MAR:
Project Management Workflow is used by the Task and Sub-task
issue types. The Content Management workflow is used by the
Document issue type.
Answer: Open the workflow in edit mode. Next to the name of the
workflow, you can see that 2 projects use this workflow. If you click 2
PROJECTS, you can see that the projects are HR and Marketing.
d. You are now taken to the workflow editor. Note the INACTIVE
indicator. This workflow won’t become active until you add it to a
workflow scheme for a project.
Most tasks here can be done in Text or Diagram mode. These instructions
will use mainly text mode but feel free to use Diagram mode if you’re more
comfortable there.
The requirements are that blogs should only be able to be published once
they have been approved and only Content Managers should be able to
publish.
Note the alert. Currently the Document issue type is the only issue
type assigned to the old Content Management workflow. By
changing which workflow this issue type is assigned to, we’ll be
deactivating the Content Management workflow in this project.
Even though the Marketing project only uses the Task, Sub-task and
Document issue types, on this screen you see all the issue types
available on your Jira instance.
b. Navigate to the Marketing project’s Issues page and view the MAR-2
issue which is in review.
Can Alana approve this issue for publication? Why or why not?
Can Harvey approve this issue for publication? Why or why not?
Does Harvey see the Publish transition or the Approved flag? Why or
why not?
Does Harvey see the Publish transition or the Approved flag? Why or
why not?
Answer: Harvey now sees the Publish transition and the Approved
flag (set to Yes) because the issue has now been approved.
Since the issue has been approved, you no longer need to show the
Approve publication transition button. It’s a bit confusing. How
could you make this not appear once the issue has been approved?
High-level Requirements:
Here we continue editing the Marketing approval workflow.
Detailed Instructions
1. Create a new status:
You can add a new status in either Diagram or Text mode. In text
mode, you use Add New Step and specify both a step name and a
Linked status. Note that these can be different. However, you can
only add a status with a global transition in Diagram mode.
f. Publish your draft workflow and save a backup copy if you wish.
Now your workflow is active.
Answer: No, she cannot see the Rejected transition because she’s
not a Content Manager.
View this log to see who changed what and where. You can see
what workflows and workflow schemes were created, updated,
deleted, copied, and renamed who did so, and when they did it. It
Jira provides a way for you to share your workflows – by exporting them from
your Cloud site then importing to a Server instance or by sharing them on the
Atlassian Marketplace. You can also import workflows others have created
from the Atlassian Marketplace.
Detailed instructions
Jira provides a way for you to share your workflows – with other users at your
organization by exporting then importing to another instance or by sharing
them on the Atlassian Marketplace. You can also download workflows others
have created from the Atlassian Marketplace. You can export and import as
both XML and as workflow. We’ll cover both here.
1. Export a workflow as XML:
a. Log in as the site administrator, Ryan Lee.
b. Navigate to the Workflows Jira administration page.
c. View the TIS DEV workflow.
d. Click Export > As XML.
e. If you are prompted to save the file, click OK. It will be saved as the
file TIS DEV workflow.xml or just TIS.
f. Navigate to the default download location for your browser on your
local machine and confirm the file exists.
g. Open and view the file using a text editor on your local machine.
Here you see the XML code for your workflow.
When exporting workflows, use the Add Notes screen to add any
special configuration notes; for example, information about apps
that should be installed.
Further Reading
Reference URL
Working in http://go.atlassian.com/cloud_wftext
text mode
Building http://blogs.atlassian.com/2013/10/building-workflow-awesome
workflows
Part 1
Building http://blogs.atlassian.com/2013/10/using-workflow-awesome
workflows
Part 2
Best Practices
Users don't know Confusing status and Ensure your status and
which workflow transition names such as transition names are
transition to use In, Out, Gone, Fixed, etc. intuitive. Don't use
next. They’re resolutions for status
confused about names.
what work is
being done.