How can I read the value of KCF+ with live fields ?

Hi,

I want to use live fields with Kepler Custom Fields Pro. I am using it as a Single Autocomplete. 

I have managed to watch my KCF+ field like this:

lfWatch("customfield_10700", {"issueType", "customfield_10700"}, "C:/jira/jira_home/silprograms/live_fields/hide_summary.sil", {"change"});

Obviously, my field is customfield_10700. The script dose call hide_summary.sil succesfully.

But my problem is that in hide_summary.sil, I can not read the value that has just been entered in the field. I have tried to use : argv["customfield_10700"] , but it was empty.

The value entered is read successfully in the post function but I need it in Live fields because I need to change the form based on the value entered. 

Any help is appreciated.

2 answers

1 accepted

Hi,

As I suggested here, try to add the custom field first in the related fields list.
For example, you can use the code below for main script:

 

lfWatch("customfield_10700",{"customfield_10700", "issueType"}, "C:/jira/jira_home/silprograms/live_fields/hide_summary.sil",{"change"});

 

Best regards,

Raluca

Thanks. That did work.

Hi Sadek,

Try not to specify the events on lfwatch like below.

lfWatch("customfield_10700", {"issueType""customfield_10700"}, "C:/jira/jira_home/silprograms/live_fields/hide_summary.sil");

 

 

Thank you Eric for your response. But I have tried your suggestion and it did not work. I have tried many other ways and they did not work. The only one that did work was Raluca's suggestion above.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you