The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create Sub-task on Transition with Condition

Steven Perez
March 15, 2019

Hello,

I'm pretty sure I have my syntax wrong, any help would be appreciated.

I have a custom field; Select list / single choice (Yes/No). When an issue is created, I need a sub-task to be created if the custom field value is equal to 'Yes'. I have tried a variation of the below, but I don't think I have the syntax correct. If I remove the condition, the transition works correctly.

Condition 1, %values_<customfield_11126>%

RegEx, 'Yes' (exact)

Thanks,

Steven

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Tinker Fadoua
Community Champion
March 16, 2019

@Steven Perez 

Are you using  "Create-on-transition" App? Or any other App to get the expected result?

Best

Fadoua

Steven Perez
March 16, 2019

Hi @Tinker Fadoua,

I'm not sure what you mean, I'm using the Jira Software admin portal; no 3rd Party app or add-on. I created a workflow and added a Post Function / condition in the 'Create Issue' transition.

Screen Shot 2019-03-16 at 11.12.35 AM.pngThanks,

Steven

Tinker Fadoua
Community Champion
March 16, 2019

@Steven Perez 

I wanted to make sure. I promise to look into your request and I will share with you an article I wrote.

Best,

Fadoua

Like Steven Perez likes this
Tinker Fadoua
Community Champion
March 17, 2019

Morning @Steven Perez 

From the screen above I think you are trying to add a trigger?

Please let me know the steps you are trying.

My article is about tasks and subtasks as post-function, I will share it even though that's not what you are trying:

Click here to read more.

Best

Fadoua

Steven Perez
March 18, 2019

HI Fadoua,

Thanks for your article, you are covering what I am trying to accomplish. The only difference is the condition being with a custom field. This is a very basic workflow, only testing the POC right now. I believe the steps are correct, it works without the condition. I just believe my syntax is not correct. See screenshots below:

Workflow Diagram:Workflow.JPGCondition on 'Create Issue'Condition.JPGThanks,

Steven

Tinker Fadoua
Community Champion
March 18, 2019

@Steven Perez 

It should work with your custom field.

Check the following link, You may find what you are looking for:

https://bitbucket.org/fcarmario/jira-workflow-toolbox/wiki/browse/post-functions

Best,

Fadoua

Steven Perez
March 18, 2019

Are you able to confirm a custom field syntax?  I checked our your wiki but did not find anything on custom fields.

Steven Perez
March 18, 2019

It looks like I was over-complicating the syntax. The condition worked correctly when using it without <  > characters. I also removed the mention of the 'values' data.

ie.  %customfield_11126%

Like Sam likes this
Tinker Fadoua
Community Champion
March 18, 2019

@Steven Perez 

Glad it is working for you! Two thumbs-up!

Thank you for accepting my answer!

Best,

Fadoua

Sam
Contributor
March 19, 2020

I've been trying to do something similar with a custom field and I've used the same format, i.e., %customfield_10202%, but the condition isn't met. The actual text I'm trying to have it match is the text "New Customer Onboarding". Could it be because there are spaces in the text?