How to copy one field to anther while performing edit operation?
You will need to add javascript in the field description which will check if it is the edit screen then copy the value from one field to another .
My way of checking the editing screen is as below (JIRA 5.1.x)
<script type="text/javascript"> AJS.$(document).ready(function() { AJS.$(document).bind('dialogContentReady', function(event, dialog) { if(AJS.$(".aui-popup-heading").text().trim()=='Configure FieldsEdit Issue'){ // Your Script } }); }); </script>
Hey Mizan,
I want to display "A" field in edit screen as "B". But not works. Can you test in yours
<script type="text/javascript">
AJS.$(document).ready(function() {
AJS.$(document).bind('dialogContentReady', function(event, dialog) {
if(AJS.$(".aui-popup-heading").text().trim()=='Configure FieldsEdit Issue'){
AJS.$("#customfield_11125").text("B");
}
});
});
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need val() .. AJS.$("#customfield_11125").val("B");
This works for me . I hope your customfield is a text field / text area field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I mean I want to change label, not field value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This was a tough one ... hope you will vote up my posts :D
AJS.$('label[for="customfield_11125"]').text("B")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is not possible to copy one field to another while you are editing an issue. However, you can clone an issue in JIRA.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stock answer ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JJupin Live Fields can certainly help you with that. Give it a try: https://marketplace.atlassian.com/plugins/com.keplerrominfo.jira.plugins.jjupin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.