I've found answer. If you're interesting in that: "(issuekey).project"
I mean another. There's my script:
string[] CL_issues_K1;
string[] issues_K1 = selectIssues("SLA_START" = breached() and created > startOfDay(-1)");
for(string iss in issues_K1){
CL_issues_K1 = createIssue("CL_SLA", "", 11604, %iss%.summary);
%CL_issues_K1%.customfield_15116 = "SLA_START";
%CL_issues_K1%.assignee = %iss%.assignee;
%CL_issues_K1%.description = "|"+ %iss%.key + " | " + %iss%.customfield_10103;
}
I created custom field called SD PROJECT KEY (id 15120). How can I get project key if I know project's issue key?
For example: Issue's key - "CL_SLA-100". How to get "CL_SLA"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Project Key is the prefix of the issue number. In the example of JRA-123, the "JRA" portion of the issue number is the Project Key.
If you're on a unix-based operating system, `cut` does this sort of stuff easily.
$ echo JRA-123|cut -d "-" -f1
JRA
$
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.