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
Community moderators have prevented the ability to post new answers.
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").
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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").
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jobin,
Thanks! Can you please let me know how to pre-populate the current user from custom field type?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a similar example in this post. You might not want it read-only but that is a small change to make!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.