Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Setting a custom version select field with automation

I have set up an automation rule that clones an issue.  I want our custom field to be cloned, but it won't clone.  I get no errors from the automation and I have this in the advanced options

{
"fields": {
"customfield_12311240" : { "value": "{{issue.customfield_12311240}}" }
}
}

The field is a version select menu.

2 answers

1 accepted

0 votes
Answer accepted

The solution was:

{
"fields": {
"customfield_12311240" : { "name": "{{issue.customfield_12311240.name}}" }
}
}
0 votes
Gaurav Community Leader Nov 18, 2021

Hello @Nicole Baratta 

In case the custom field is not reflecting the value as expected, you can update the Automation rule to copy the values from the actual issue. For that, I would suggest using the inbuilt mechanism.

Please find below the screenshot for copying a field from the current issue. The 3 dots after the field name (Affected Hardware, in the screenshot) can be used to define some other value.

Please accept the answer if this helps.

Clone Issue.JPG

Actually, when I clone the field doesn't carry over - not when I manually clone or when I automate the clone.

Gaurav Community Leader Nov 18, 2021

Hello @Nicole Baratta 

Kindly share the complete use case which would help us devise an alternate option if possible.

The use case is:

When an issue is created in the engineering Jira project where it indicates that documentation is necessary a new issue is created in the documentation Jira project with the details and linked back to the engineering Jira as 'documents'.  In both cases, the Target Release (the custom field) would be the same.

Here is the Target Release field on the trigger issue.

Screen Shot 2021-11-18 at 11.14.22 AM.png

Here is the automation I have set up.

Screen Shot 2021-11-18 at 11.15.35 AM.png

Here you can see that Target Release isn't an option in the fields to set.

Screen Shot 2021-11-18 at 11.13.57 AM.png

After the rule runs a new issue is created, but the Target Release is not set ... actually, neither is the 'Affects version/s' even though that's set in the rule.

Screen Shot 2021-11-18 at 11.21.06 AM.png

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

36 views 0 1
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you