Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



details
UI Text Box
sizemedium
typeinfo
Panel
title
borderColor#1b878f
titleColor#1b878f
titleBGColorwhite

Use case

Page properties
Function

<link to function being used>

Type

Image RemovedPost function

Use case description

Add a comment to alert the reporter about an issue that has

Status
colourRed
titlehigh
  or
Status
colourRed
titlehighest
priority.

Complexity

Status
colourGreen
titleBeginner

Image RemovedConfiguration steps

Comments are a great way to let users know what is going on and what the latest updates are.

But they perfectly fit for reminding users of doing something!

In this use case we will use the Add comment post function to automatically add a comment to the current issue and notifying the assignee to take action.



Image Added Configuration

UI Steps


UI Step

Add the Add comment post function to the workflow transition you want to place it in.

Basic configuration*

ui-stepsstepexpandtitle


UI Step

Comment text

*

Choose Add comment manually (parser expression).


UI Step

Expression

*

Code Block
linenumberstrue
Hi [~%{issue.assignee}],
this issue needs your attention. Please provide feedback as soon as possible!
  
Thanks,
%{system.currentUserFullName}



Send email notification
UI Step

Further configuration

UI Expand
titleComment visibility

By default it is set to Unrestricted (all users), but you can change this option.

You can select either a group, project role or set Jira Service Management visibilities.


UI Expand
titleAdditional options
 

By default, no email will be sent for this comment. Hit the checkbox to send one!


ui-
Expand
titleRun as

Include Page
DECADIS:_snip_runAs_Server_postFunction
DECADIS:_snip_runAs_Server_postFunction



UI Step

Conditional execution

Enter the following expression: 

Code Block
linenumberstrue
%{issue.priority
UI Expand
expandedtrue
titleConditional execution
Code Block
%{00017} in ["High","Highest"]


ui-
text-box
type
Run as

Choose which user you want to give permission to execute this post function. By default it is set to the Current user.

After checking if the parameters match this example, you can click on add and this is how the post function should look like.

Image Removed

Now that you are familiar with this post function and what it does, you can configure the parameters based on your needs.

info

This way the post function will only be executed, if the issue priority was set to High or Highest.





Image AddedScreenshots

Image Added


Image Added Related use cases

Related examples

Page properties report
firstcolumnUse case
headingsTypeJWT feature, Function, Use case description, ComplexityWorkflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-workflow" and space = currentSpace() and ancestor = "JWTSDC"
If you still have questions regarding this example or others, feel free to refer to our support team.
27066635"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Image Added

Workflow function

Add comment

Parser functions
Label



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged