This question is in reference to Atlassian Documentation: Adding, Editing and Removing User Macros
Community moderators have prevented the ability to post new answers.
The easiest way I know of is to use Javascript:
<script> AJS.toInit(function() { jQuery.post(contextPath+'/json/addlabelactivity.action', {'entityIdString': '$content.id', 'labelString': 'label-to-add', 'atl_token': jQuery('#atlassian-token').attr('content'); }); <script>
I am curious why you would want to do this with a user macro ... as you have to edit the page to add the macro and it would be just as easy(easier, since you don't have to go into edit mode) to simply add a label.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Davin,
I know it sounds silly - I'm already asking my users to enter a document number that we use internally. I wanted to use that number and add it as a label . So what we can search by label
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Davin Studer @Stephen Deutsch
Any ideas how I can so this?
I've posted this question in a number of threads and can't get an answer. Any help would be appreciated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Melissa C,
I see from another question's comments that you are having your users enter the document number using a user macro. Perhaps if you posted the user macro then we could help you adapt it so that it adds a label as well. However, this would be better submitted as a separate question instead of a comment on an existing thread.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.