Dear all,
I'm new to Jira, and I am struggling with some automation rules for the Worklog Pro. I want to set the Account for Worklog Pro automatically based on a defined custom field C7.
I could not find a way to do it using automation rules so Itried to script it.
import com.atlassian.jira.issue.Issue;
def fields = getIssueFields(issueKey);
if (worklog.account == null ) {
worklog.account = fields.C7
}
return issue
so that if there a worklog entry it check if account is not set, and if null it takes the C7 value.
could you please let me know, if you know any possible way to do it.
Thanks much.