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



UI Text Box
sizemedium
typeinfo

Use case

Create an automation rule that will remove the attachments of all issues that were resolved 30 days ago.


Configuration

UI Steps


UI Step

Create a new rule and name it appropriately.

UI Text Box
typetip

Providing a description will help you to identify what the rule does but this step is optional.


Scheduled trigger

Add a trigger

Select Scheduled trigger


UI Step

Schedule the trigger once a day.


UI Step

Interval

Run the automation at 3:00 am as it is preferable to make this operation outside of business hours.


 JQL Selector

UI Step

Add a Selector

Select JQL selector


UI Step

JQL Query

Use the following expression:

Code Block
languagebash
linenumberstrue
status WAS closed BEFORE -30d




Boolean condition


UI Step

Add a Condition

Select Boolean condition


UI Step

Expression

Use the following expression:

Code Block
languagebash
linenumberstrue
%{selector.issue.attachment} != null


 Update field action

UI Step

Add an Action

Select Update field


UI Step

Field

Select Attachments (current attachments will be replaced)


UI Step

Update to

Select Value returned by parser expression and fill the field below with an empty string (empty quotations marks "").



Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-auto" and label = "update-field" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Automated action
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