Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Custom field-default value is same as other custom field

Safikur Khan July 3, 2011

Hi,

I have to create a new custom field where the default value should be as same as the value of the field "reporter". Anyone, please let me know the steps to achieve this.

Many Thanks!

Safikur

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Edwin Chan
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.
July 4, 2011

Using the "Copy Value From Other Field" post function in JIRA Suite Utilies (as Colin said) is definitely the best solution. You can include it in any workflow transition. If you want it to be the same after the create screen, you can simply put it on the create transition (remember to put it after "Creates the issue originally").

Safikur Khan July 6, 2011

Eykchan,

I'm using the version 4.2.1. I think JIRA Suite Utilities is compatible with 4.3 only. https://plugins.atlassian.com/plugin/details/5048. Let me know other solution.

Dana Frost
Contributor
April 18, 2012

I tried using the Create workflow but found that if the user entered a value the "Create" workflow would replace what the user entered when they created it. So, it seems I would need a "if value is blank" then replace it. So, just using standard workflow and the Copy Field method may not work they way you want.

0 votes
Colin Goudie
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.
July 3, 2011

Top of my head, I'd try

Server side - Create a listener that listens to 'Issue Created' events and then sets the custom field value

Or

Client side - If custom field is visible capture the onchange event of the reporter field and copy it into the new custom field area. hacky??

The other way is if you didn't need this until a workflow transition you can use workflow Post-Functions to copy the value of one field to another. I believe this ability is in the JIRA Suite Utilities plugin

Edwin Chan
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.
July 3, 2011

Using the copy value post function in JIRA Suite Utilies is definitely the best solution. You can simply put it on the create transition (remember to put it after "Creates the issue originally").

0 votes
Jobin Kuruvilla [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 Leaders.
July 3, 2011

When you say reporter, do you mean the person who is creating the issue? The reporter can be edited to hold someone else's name!

I guess you meant the current user and if so, you can write a simple custom field type that pr-populates the current username.

Safikur Khan July 3, 2011

Jobin,

Thanks! Can you please let me know how to pre-populate the current user from custom field type?

Jobin Kuruvilla [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 Leaders.
July 3, 2011

There is a similar example in this post. You might not want it read-only but that is a small change to make!

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events