# Defaulting Issue Security

**URL:** <https://community.exalate.com/t/defaulting-issue-security/4559>\
**Category:** General Questions\
**Tags:** onpremise-jira, exalate, migrated\_question\
**Created:** [November 4, 2024, 7:06am UTC](https://community.exalate.com/t/defaulting-issue-security/4559 "2024-11-04T07:06:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:06am UTC](https://community.exalate.com/t/defaulting-issue-security/4559/1 "2024-11-04T07:06:18Z")

</div>

_Originally asked by Howard Kenny on 19 January 2021 [(original question)](https://oldcommunity.exalate.com/questions/20124421)_

* * *

Hey,

How do I set an issue security? I’ve referenced this, but it doesn’t cover a default: [https://docs.idalko.com/exalate/display/ED/How+to+synchronize+SecurityLevel+issue+field+in+Jira+Server](https://docs.idalko.com/exalate/display/ED/How+to+synchronize+SecurityLevel+issue+field+in+Jira+Server)

I thought it would simply be the below, but it errors:  
issue.securityLevel = “General”

Cheers,

Howard

* * *

#### Comments:

> **Howard Kenny commented on 19 January 2021**
>
> > NB. I’ve found a temporary workaround by putting a post-function on the Create transition in the workflow, but it would still be good to know how Exalate should handle it.

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:06am UTC](https://community.exalate.com/t/defaulting-issue-security/4559/2 "2024-11-04T07:06:19Z")

</div>

_Answer by Francis Martens (Exalate) on 19 January 2021_

Hi Howard Kenny

Did you try the following snippet

```auto
import com.exalate.basic.domain.hubobject.v1. BasicHubIssueSecurityLevel
issue.securityLevel = new BasicHubIssueSecurityLevel(null, "name", "description")

```

where “name” should be the name of the default

* * *

#### Comments:

> **Howard Kenny commented on 19 January 2021**
>
> > Hi,
> 
> I didn’t because I didn’t know what the Description would be. Thank you.
