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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,440
Community Members
 
Community Events
176
Community Groups

Make nfeed field read only based on workflow transition

Edited

I have an nfeed custom filed which I want to make as read only after particular workflow transition. before that transition field should be editable any time but after workflow transition user should not be able to make the change.

I tried make this read only by behavior plugin but its is not working in case of nfeed custom field.

 

Please suggest for any solution.

1 answer

0 votes

Hello,

nFeed will soon be compatible with Behavior. Valiantys developer team is currently working on it and will release improvements in the next version -> https://valiantys.atlassian.net/browse/NFEED-1727

Regards,
Nicolas

Hi @Nicolas Simon 

Can nfeed field be set readonly through javascript? If so can you help me on the same?

Like Satheesh Kumar (Wipro) likes this

Hello @Vineela Durbha nFeed is known as Elements Connect now.

Check out our documentation for help with using Scriptrunner with Elements Connect.

Hi @Laura Campbell _Elements_ 

We dont want to set field readonly through behaviors as we want to set element connect field during clone and not during create. I have written javascript as below and it is working 

JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function(e, context, reason) {

var isCloneIssuePage = AJS.$('#clone-issue-dialog').is(':visible');
var issuetype=AJS.$('#issue-create-issue-type').text();
if (isCloneIssuePage == true || AJS.$('#content .aui-page-header-main h1').text() == "Clone") {
alert('clone')
if(issuetype =="Customer Product SKU"){
alert(issuetype)

AJS.$('#customfield_15003').attr("disabled", true); //nfeed field

}

}

});

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events