setIssueEntityPropertyValue

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center?Ā Click hereĀ !

The availability of the users personal data may be impacted by the recent changes by Atlassian in order to meet GDPR compliance. See the following for more information:


Availability

  • This routine is available for Jira cloud deployment options.

Syntax

setIssueEntityPropertyValue(issueKey, propertyKey, propertyValue)

Description

Adds or updates an already existing property of an entity (seeĀ jira entity properties)

Parameters

Parameter

Type

Required

Description

issueKeyStringYesKey of the selected issue.
propertyKeyStringYesProperty key
propertyValueStringYesValue to set for the property.

Return type

none

The returned value has no meaning.

Example

setIssueEntityPropertyValue("CD-1",Ā "day1",Ā "Monday");

Example 2 (cloud)

string key = "TESTPRJ-16";
struct _prop {
Ā  string [] sil_jql_custom_property_number_1;
}
_prop p;
p.sil_jql_custom_property_number_1 = "4";
return setIssueEntityPropertyValue(key, "powerscripts.custom.property.number.1", replace(toJson(p, false, false), "_", "-"));

See also