Make nfeed field read only based on workflow transition

Ravi Kumar March 2, 2018

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
Nicolas Simon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2018

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

Vineela Durbha October 13, 2020

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
Laura Campbell _Seibert Media_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2020

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

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

Vineela Durbha October 14, 2020

Hi @Laura Campbell _Seibert Media_ 

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
AUG Leaders

Atlassian Community Events