Strange behavior of function Copy Value From Other Field

Jiri Bures April 27, 2020

We are using Jira Cloud and Service Desk.

I want to store Description to custom field Original Description when a new issue is created 

I used Post Function Copy Value From Other Field

2020-04-27_18-20-29.jpg

But the result was like that:

Some Text --> Optional[Some Text]

If I tried the same Post Function with Source Field Summary, everything was OK.

Any suggestions where the problem is?

 

2 answers

1 accepted

0 votes
Answer accepted
Jiri Bures April 28, 2020

Standard Post Function does not work with this situation, only way how to solve the problem is to use Automation.

1 vote
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 27, 2020

Hi @Jiri Bures - Welcome to the Atlassian Community!

Can you share a screenshot of exactly the value it put in there?

Jiri Bures April 27, 2020

Here is the screenshot

2020-04-27_19-22-38.jpg

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 27, 2020

Why does the Original Description look like it has a Dropdown next to it? Where was the screenshot taken? 

Jiri Bures April 27, 2020

It is Old view of the Issue.

Original Description is defined as Text Field (multi-line) and put to this screen. The "Dropdown" is there that you can see Text in one-line or Multiline - I think it is standard Jira Old View behaviour

The whole screen:

2020-04-27_20-06-01.jpg

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 27, 2020

It might be related to the name you have given it. That shouldn't effect it but Jira can do some strange things. Maybe change the custom field name to Original Desc and then try it again. 

Jiri Bures April 27, 2020

I changed field name to Original Desc and the result is the same.

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 27, 2020

And what tool are you using to do the copy?

Jiri Bures April 27, 2020

As I mentioned in the description of this ticket (with screenshot), it is Standard Post Function Copy Value From Other Field.

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 28, 2020

I would try using Automation for Jira to see if it works better for you instead of the standard Post Function. 

Jiri Bures April 28, 2020

I can you Automation but it notifies about the change.

It seems that standard Post Function does not work and from my perspective is it bug. I use Automate

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 28, 2020
  1. Go to Project Settings > Project Automation (on left-hand menu)
  2. Press Create Rule in top-right corner
  3. Select the Trigger "Issue Created" and press Save
  4. Next Select to add an Action, and choose "Edit Issue"
  5. Select the field Label
  6. Select the options icon (3-dots) - and choose "Add/remove values"
  7. Enter the value you want as a default and press Save
  8. Name your Automation and turn it on

Now when each issue is created, it will add the desired default label as long as the issue is created in that project. You might need to refresh the page after each issue creation to see it.

You can do this via global rules to apply to all projects also. You'll need to be a Jira Admin/Site Admin, then instead of going to Project Settings, go to Jira Settings (cog icon on left-hand navigation bar) > System > Automation Rules (left-hand menu).

For more on using Automation For Jira see these help pages.

Jiri Bures April 28, 2020

Thanks

Suggest an answer

Log in or Sign up to answer