Date: Thu, 28 Mar 2024 22:33:38 +0100 (CET) Message-ID: <671721446.428.1711661618740@apps-confluence-5.apps-confluence.apps.svc.cluster.local> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_427_207125428.1711661618740" ------=_Part_427_207125428.1711661618740 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
A well known limitation of Jira is that it's not possible to set issue creation permissions per Issue Type. We ar= e going to show how to overcome this limitation by inserting a vali= dation in "Create issue" transition in a workflow= .
We will show two different solutions based on two diffe= rent features of Jira Workflow Toolbox:=
Let's suppose that we want to limit issue creation in a workflow, only t=
o user in project roles "Developers" or "Testers=
strong>". To do it we will introduce a validator Users in field are (n=
ot) in a project role in transition "Create issue" with the following configuration:
Once configured, transition "Create issue" will look li= ke this:
Let's we implement in a workflow the following issue creation permission= s per issue type and project role:
We will introduce in transition "Create issue" a valida= tor Boolean validator with math, date-time = or text-string terms with the following configuration:
Boolean expression used is:
(%{00014} =3D "Bug" IMPLIES (isInRole(%{00020}, "Testers")=
OR isInRole(%{00020}, "Users"))) AND (%{00014} =3D "Improvement" IMPLIES (=
isInRole(%{00020}, "Testers") OR isInRole(%{00020}, "Product Managers"))) A=
ND (%{00014} =3D "New Feature" IMPLIES isInRole(%{00020}, "Product Managers=
"))
Note that:
Once configured, transition "Create issue" will look li= ke this:
Users in field are (not) in a project role
Boolean validator with math, date-time o= r text-string terms