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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

97 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you