How to run a script in jira automation?

Jamshaid
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.
February 26, 2024

I need to run a script to perform some changes on the values of a custom fields by splitting the value based on a specific string. How do I run such script in jira automation?

Thanks 

2 answers

2 accepted

2 votes
Answer accepted
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 26, 2024

Hi @Jamshaid --

So Jira Automation doesn't support running scripts (Bash, Python), but it might be able to do what you want using built-in functionality.

If this is a one-time thing you need to run, you could use a Manual Trigger. 

And then to update a custom field value, you would use the Edit Issue action.

Within the text field Smart Value functions, there is a split, which might help you accomplish what you are trying to do.

If you need more assistance, please provide the specifics, and we can help.

 

Jamshaid
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.
February 28, 2024

@Darryl Lee thanks for responding. I need to split this value

52-CT83 that is in custom field PROJ to 56 and CT83 and set 56 to a custom field. How do I do this using automation?

Thanks

 

 

0 votes
Answer accepted
Jamshaid
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.
February 28, 2024

Thanks to the hint by @Darryl Lee , I have got it working with the following flow

123.png

Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2024

Glad to see you got it working! Sorry I misunderstood what you meant by "running a script". I'd appreciate if you could accept my answer below, since it did lead you to the split() command that you were looking for.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events