Forums

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

JIRA Automation: How to use Smart Fields split() function for key

jeevan October 13, 2022

Hai,

I am new to Jira

I am trying to create an automation rule that lets me copy an epic issue key number  and story summary

for example,

epic issue key = NCP-7 & epic summary = it's project epic

 story summary = hello 

 In the automation rule when the epic issue moves from open to in progress, I want to display in the story summary equal to  7 number and story summary.

finally, I want

story summary = 7 & hello

 what type of smart value is used in the automation rule

Does anyone know if this is possible, or have a suggestion on how to accomplish this?

this is my automation rule 

110617.png

 

thanks in advance

1 answer

1 accepted

2 votes
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2022

Hi @jeevan 

You are talking about subtasks, but on your rule you are dealing with epic and stories (or tasks). 

So let me get this straight:

When the epic move to a specific status, you want to add to all its stories (task or whatever standard issue types) the Epic Key in front of their summary. Correct?

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2022

Something like this?

 

STAGE

epic.png

RESULTS

my rule.png

Like jeevan likes this
jeevan October 14, 2022

Hai Alex koxaras,

thanks for your reply

actually, in my project, I created an epic and child issue = story

epic summary = it's my project epic & epic issue key = NCP-7

story summary = hello and its issue key = NCP-8

In automation rules when epic moves from open to in progress then automatically  replace story summary = that epic key number and story summary

it's means story summary = 7 hello

this is my requirement, it's possible to do this requirement Mr. Alex koxaras

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2022

You mean without the project key? You only want the number of the project plus the summary of the child issue?

Like jeevan likes this
jeevan October 14, 2022

yes, is this possible?

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2022

Yup!

Do this but change the trigger

  • Store in a new variable myVal
{{project.key}}-

arule001.png

And then edit the issue using the 

{{triggerIssue.key.substringAfter(myVal)}}-{{issue.summary}}

arule002.png

 

Results

arule003.png

jeevan October 14, 2022

thanks for your help @Alex Koxaras _Relational_ 

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2022

@jeevan kindly mark my answer as accepted in order to help others. Thank you!

Like jeevan likes this
jeevan October 14, 2022

hai @Alex Koxaras _Relational_ 

I got it .it's successfully done .

thanks for help 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events