---
title: "Simple Issue Language"
canonical: "https://support.appfire.com/space/PSJC/434798967/Simple%20Issue%20Language"
format: markdown
---
> Macro (aura-html)

---

## Key SIL components

### Jira standard variables

SIL provides a list of standard variables that you can use to change issues fields.

For example, to change the issue description, you can use the standard variable description:

```
description = "Issue description";
```

> ℹ️ Learn more about standard variables [here](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/491001773).

### Functions

SIL comes with a library of standard functions to use in scripts. There are functions for handling arrays, strings, and dates, and there are specific app functions.

> ℹ️ Learn more about SIL functions [here](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/434374166).

---

## SIL example script

To get a taste of what a SIL script looks like and does, here's an example that assigns an administrator as both assignee and reporter, sets various issue fields including description and due date, handles custom fields with conditional logic, creates a new issue, and automatically transitions the original issue to a new workflow state.

```
string k;
assignee = "admin"; 
reporter = assignee;
description = "some description";
dueDate = currentDate() + "1d";

// Custom fields
if(isNull(cfnumber)){
    cfnumber = 1;
} else {
    cfnumber = cfnumber + 1;
}

// Create issue routine
k = createIssue("TSTP", "", issueType, "auto-created issue");
%k%.votes = %k%.votes + 1;

// Autotransition
autotransition(721, key);
```

Let's [explore SIL](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/15731951) together, building your knowledge step by step through practical examples and clear explanations.

---