YouTrack InCloud 2017.2 Help

Project

Properties

NameTypeDescriptionRead-only
keyString The key of the project. Use instead of project.shortName, which is deprecated. /help/img/youtrack/2017.2/checkbox-marked.png
nameString The name of the project. /help/img/youtrack/2017.2/checkbox-marked.png
notificationEmailString The email address that is used to send notifications for the project.If a From address is not set for the project, the From address for the YouTrack server is returned. /help/img/youtrack/2017.2/checkbox-marked.png

if (issue.becomesReported) { var lastRelatedEmails = issue.fields['Last message related emails']; if (lastRelatedEmails) { lastRelatedEmails.split(" ").forEach(function (email) { if (email && email.equalsIgnoreCase(issue.project.notificationEmail)) { var allRelatedEmails = issue.fields["All related emails"]; if (!allRelatedEmails) { issue.fields["All related emails"] = email; } else if (!(allRelatedEmails.split(" ").has(email))) { issue.fields["All related emails"] = allRelatedEmails + " " + email; } } }); issue.fields['Last message related emails'] = null; } }

isArchivedBoolean `true` in case the project is archived. /help/img/youtrack/2017.2/checkbox-marked.png
descriptionString The description of the project. Available in project administration UI. /help/img/youtrack/2017.2/checkbox-marked.png
fieldsSet.<ProjectCustomField> Custom fields configured for the project. /help/img/youtrack/2017.2/checkbox-marked.png
issuesSet.<Issue> All issues of the project. /help/img/youtrack/2017.2/checkbox-marked.png
leaderUser The leader of the project. Available in project administration UI. /help/img/youtrack/2017.2/checkbox-marked.png

Methods

 

findByKey

findByKey(key)

Finds a project by short name (id).

Parameters:

NameTypeDescription
keyString The key to find by.

Returns:

TypeDescription
Project Project, or null in case no project exists with the provided short name.

 

findByName

findByName(name)

Finds a project by name.

Parameters:

NameTypeDescription
nameString name to find by.

Returns:

TypeDescription
Project project, or null in case no project exists with the provided name.

 

findFieldByName

findFieldByName(name)

Returns the project's field with the specified name.

Parameters:

NameTypeDescription
nameString Field name.

Returns:

TypeDescription
ProjectCustomField Field with the specified name.

 

Last modified: 22 May 2017