Forums

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

How to extract information from a version

Ingo Cernohorsky January 16, 2024

i am currently testing the automation for jira.

i have managed to create a story when a fixversion is created.

i want to link this new created story to an existing epic. but here comes my problem.

i create a version for example. "WEB 24.03". The name of the existing Epic is "Frontoffice 24.03".

how can i extract the "24.03" from my created version via automation to link it to the epic?

is it even possible?

2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 17, 2024

Hi @Ingo Cernohorsky 

First thing, I am using Jira Cloud, not the Server version, and so my suggestion is based on what I know about automation rules and not your specific Jira version.  With that out of the way...

Have you tried using text functions to build the epic name, such as with the Replace() function; use that to branch with JQL to the epic; and then create the issue inside the branch, linking to the current issue?

  • trigger: version created
  • branch: on the JQL
    • action: create issue, linking to the {{issue.key}} which is now the parent epic

 

Kind regards,
Bill

0 votes
Emily _ DevSamurai
Community Champion
January 16, 2024

Hi @Ingo Cernohorsky , welcome to the community!

Yes. It is possible. You can try this way:

  1. Create a custom field (e.g.: Extracted Version Number)
  2. Extract the version number from the version's name using the regular expression (?<=WEB\s)\d+\.\d+ and store it in the "Extracted Version Number" custom field.
  3. Find the existing epic with the exact name that matches the extracted version number, e.g., "Frontoffice 24.03."
  4. Link the newly created story to the found epic.

I hope this may help!

Ingo Cernohorsky January 17, 2024

Thank you. How do i create a customfield in automation? any documentation you can recommend about?

Like Emily _ DevSamurai likes this
Emily _ DevSamurai
Community Champion
January 17, 2024

Hi @Ingo Cernohorsky 

Let's try:

  1. Jira Settings (gear icon) > Issues > Custom Fields.
  2. Click "Add Custom Field."
  3. Choose "Text Field (single line)."
  4. Configure the field's name, context, and other settings.

Let me know if it works ☺️ thank you!

Ingo Cernohorsky January 17, 2024

i need to be jira admin to add custom fields. but i am only a normal user...

isnt there an option only inside automation?

Suggest an answer

Log in or Sign up to answer