Date: Thu, 28 Mar 2024 10:14:33 +0000 (UTC) Message-ID: <297921498.1941.1711620873201@50041d78312e> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1940_1649356840.1711620873201" ------=_Part_1940_1649356840.1711620873201 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Via Scriptrunner for all projects:
import co= m.atlassian.core.ofbiz.util.OFBizPropertyUtils import com.atlassian.jira.component.ComponentAccessor def newAddress =3D "newEmail@example.com" ComponentAccessor.projectManager.projects.each { def email =3D OFBizPropertyUtils.getPropertySet(it.getGenericValue()) email.setString("jira.project.email.sender", newAddress) }
Via scriptrunner for a single project
import co= m.atlassian.core.ofbiz.util.OFBizPropertyUtils import com.atlassian.jira.component.ComponentAccessor def newAddress =3D "newEmail@example.com" def project =3D ComponentAccessor.projectManager.getProjectByCurrentKey("AT= G") def email =3D OFBizPropertyUtils.getPropertySet(project.getGenericValue()) email.setString("jira.project.email.sender", newAddress)