Setting assigne based on Epic Name using "Set a field as a function of other fields" post-function

Peter Bengov Community Champion Nov 14, 2015

I'm using the JIRA Workflow Toolbox to set the assingee using a post function all the time. 

I'm trying to do this now based on the Epic Name, but for some reason it doesn't work.

For example:

  • I have an Epic with the name *LALA land*
  • The Field to be checked for matching with type 1 setting rules is set to Epic Name
  • The Target field to be set is set to Assingee.

  • The rule is (LALA land,Other Epic,Yet Another epic)admin

Noting happens after the transition is complete.

I'm quite sure this is Epic-related since in the same transition I have the same post function working based on a custom field. 

JIRA version: 6.3.12

Thanks

 

2 answers

Hi Peter,

The problem is that you should use '|' instead of ',' for separating epic names, since you should use regular expressions syntax. Any of the following configurations will work:

CONFIGURATION 1

Captura de pantalla 2015-11-15 a las 22.02.53.png

Setting rule:

(LALA land|Other Epic|Yet Another epic)newton

 

CONFIGURATION 2

Captura de pantalla 2015-11-15 a las 22.03.21.png

Setting rules:

(LALA land)admin
(Other Epic)admin
(Yet Another epic)admin

Regards,

Fidel C. Armario

Peter Bengov Community Champion Nov 16, 2015

Weird, but it doesn't work with the pipes are well. Is there a way to add log messages when the post-function runs? BTW - how can I set the assignee to "unassigned"? Thanks

Hi Peter,

You should write the names of the epics exactly as they are, respecting character cases.

Can you please attach a screenshot with the exact configuration you are using? I would like to see the actual names of your epics. Perhaps, they have reserved characters for regular expressions.

You can use the following rules to avoid conflict with reserved characters using prefix 'l' (for literal), and also to make them case ignorant with prefix 'i' (for ignore case):

il(LALA land)admin
il(Other Epic)admin
il(Yet Another epic)admin

In order to unassign the issue, simple any of the following values: 'unassigned' or 'null'. An example of setting rule for unassigning the issue would be:

il(Epic A)unassigned

 

BTW, character '|' is used in regular expressions syntax to separate alternative capturing group. It doesn't have nothing of weird smile.

Fidel

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

597 views 6 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you