Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • How Post Function To Transition -> Clear Field Value or Update Issue Custom Field to 'None' works in Jira

Is there a way to copy one custom field value from one issue to other issues using automation

venkatesh_rajput
February 28, 2023

So I want to put a date on the area marked with green and once I do that the same date should get copied to all the other issues(the area marked with orange) as soon as I put a date on the green circle. Also I want it for a specific release version, like the dates should get updated for a Jan 1 fix version/s and not for the other values of fix version/sdoubt.png

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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 Champions.
January 17, 2017

>its default value is set to 'none'

Ah, ok, that's not quite true.  None is the word JIRA displays to the user to say "there is no data selected yet".  It's not a selection, it's telling the user they haven't select anything.

If you put post functions on a transition to set or clear it, it will overwrite what the user enters, so you should either not use post-functions, OR remove the field from the transition screen so that they are not asked for a value that will then be overwritten.

When you want to empty out a field, I find it is better to use "clear field value", so that it's clear to other administrators what you have one

Manjunatha K R
Contributor
January 17, 2017

Thanks for the clarification Nic.

In case, if user has not set any values to this custom field while creating the ticket and If I tried to use the "clear field value" in one of the transition post function - is it OK?

Nic Brough -Adaptavist-
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 Champions.
January 17, 2017

The "clear field value" will empty out the field, whatever the previous content.  It's fine to clear out an already empty field.

Ajay Prasad
July 19, 2018

My post function on issue creation of setting the assignee to default (which is unassigned in the project setting) is not working. The assignee picked by the creator is retained.

The post function I am using is setting the assignee field to Default

 

Any help will be much appreciated.

manoj kumar
July 28, 2022

Did you get any help on this? I want a post function to clear my assignee field (default should be unassigned field)

Nic Brough -Adaptavist-
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 Champions.
July 28, 2022

Er, use the clear field value, as above.

Suggest an answer

Log in or Sign up to answer