Hi,
Very new to JIRA and scripting as well.
I've a JIRA board that is very manual and trying to automate some tasks.
Currently using JIRA cloud but can't use too many plugins like automation for JIRA due to our Infosec policy.
I've tried to setup a post function SIL script using following script. Script loads and checks without error but Peer Review sub task is not created with I transition the parent issue.
Any pointers would be greatly appreciated.
string issue_project = project;
string issue_parent_key = key;
string issue_type = "Peer Review";
string issue_summary = "New subtask for " + key;
string issue_priority = "";
string issue_description = "";
string[] issue_components;
date issue_dueDate = currentDate() + "1d";
string issue_security_level;
string[] issue_fields_mapping;
string i = createIssue(issue_project, issue_parent_key, issue_type, issue_summary, issue_priority, issue_description,
issue_components, issue_dueDate, issue_security_level, issue_fields_mapping);
linkIssue(i, issue_parent_key, "Relates");