Comments
-
Please follow this documentation: https://confluence.atlassian.com/adminjiracloud/importing-data-from-csv-776636762.html
-
Hi @Z-EL Try this add-on https://marketplace.atlassian.com/apps/1220214/select2?hosting=server&tab=overview It's free and will transform all your single/multi select custom field to be of type select2. Just install and don't need to do anything else
-
@Zeev Roytman Glad to help. And the URL was my mistake :)
-
Hi Zeev, Try the following steps: * In your Bitbucket, go to admin page -> Application Links * Click F12 to open browser dev tools * Go to "console" tab * Write this line there and click enter. $($("tbody tr")[0]).attr("id") The zero inside the braces is the order of Jira in your table. If your Jira is first you write 0,…
-
Hi @Mihai Mihai Here is the complete code: import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.util.DefaultIssueChangeHolder import com.atlassian.jira.issue.ModifiedValue import java.sql.Timestamp; def customFieldManager = ComponentAccessor.getCustomFieldManager() def sprint =…
-
Right now GMT-6 means 7:33 AM (that's what you set in Jira) Your desktop shows 6:51 PM (which is GMT +5:30??) So i'm confused =/ Which one is your correct time zone (regardless Jira)? But even if we fixed the time zone issue. Still your customfield will always show you wrong date. You customfield is always set with the…
-
I'm asking beacuse: set a customfield with default value, set's the value already in the creation step. You marked the check box "Use the current time and date as the default" So when the issue created (in your exmplae probably Feb 27), the custom field automatically got the default value of current time as you marked "Use…
-
Hi @SARAVANAKUMAR In the example above you took screen shot. Can you tell me what is the creation date of the issue?
-
Hi @Mihai Mihai OK, you will have to tell me if this customfield is of type "date" or "date time" this is a big difference. Please check to be sure and et me know, i will help you
-
Hi @Mihai Mihai Instead of creating customfield and than a script to update that customfield. Simply create scripted field with script runner, in the scripted field template, choose "Date Time". Copy paste this script: import com.atlassian.jira.component.ComponentAccessor def customFieldManager =…
-
Hi @Mihai Mihai You want to update a customfield of type "date" with the value of "sprint end date"?
-
Hi @Tabea Blank , I think that you can, but you better verify it with Atlassian
-
Hi @SARAVANAKUMAR , Was there a value in the field before the screen came up? Maybe that's what you see because someone else already picked up a different value? (or this is happens all the time?)
-
Hi @Karyn Tooke Unfortunately, you can't achieve this in cloud, only server.
-
Hi @Karyn Tooke , Same question, are you using Service Desk cloud or server? Your screen shot refers to the issue view, am i right?
-
Hi, You don't have it built in from Jira. You have to create a custom field of type number. Than, use a plugin to increment the custom field value by 1 when status changes from A to B. You can use any of the following: * https://marketplace.atlassian.com/apps/1215460/automation-for-jira?hosting=cloud&tab=overview This one…
-
Hi @Paul Tiseo, As @Alejandro Suárez García suggested, please post your code. Also please mention your Jira version and ScriptRunner version. I tried and everything works fine...
-
Hi @Sir Charles Amante Why are you using HTTPBuilder? Here is a complete code that will work for you, just copy paste: import com.atlassian.jira.component.ComponentAccessor; import org.apache.commons.httpclient.Credentials; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus;…
-
Hi @fr Behnk, You should write it as listener. Because you want to listen to "issue updated". Any time an issue has been updated, you want to check field A and update B accordingly.
-
Hi @Miguel Angel Agustin, I suggest you to use JavaScript, And convert your custom field to be of type "select2" and it will make your field exactly as you wanted.
-
Hi @Basit Rehman, Not that i know of. At this point, i think going back to the REST API will be best, but you will have to hardcoded your credentials.
-
Hi, Not fully understand :) When you say "rendered" comment, you mean, you want the comment body as HTML instead wikiMarkup? If yes, follow this: With "commentManager" you can get all comments. import com.atlassian.jira.component.ComponentAccessor def commentManager = ComponentAccessor.getCommentManager() def comments =…
-
Hi @Basit Rehman, why are you trying to access Jira from inside Jira (scriptrunner) via rest api? you should access everything directly with the JAVA API and not rest api. Please tell me what you are trying to do so i will be able to guide you better.
-
Hi @Basit Rehman Did you tried without credentials? Maybe it will recognize that a user already loged in and will use the session automatically.
-
Hi, Use Scriptrunner with this script: import com.atlassian.jira.component.ComponentAccessor def commentManager = ComponentAccessor.getCommentManager() def comments = commentManager.getComments(issue) comments[0].created
-
Hi @Basit Rehman, Please open a new question :) Mention me there :)
-
This should work, i tried the same and worked for me. Try to add debugger and open dev tool (F12) to see what happen in your code: function showHelp() {debugger; var listenersDiv = document.getElementById("qaFieldHelp"); if (listenersDiv.style.display == 'none') { listenersDiv.style.display = ''; } else {…
-
Hi @Jamie Rogers Both "subtask.getResolutionObject()" and "issue.getResolution()" will work. The error you get is just a suggestion, it's a warning. Any way, i tested and it works, all you need is just to add in the end of the script this line: return subTaskSum So your final code is: def subTaskSum = 0…
-
@Alexander IvanovYou are welcome :) If this is closed from your side, Please mark this as "accepted answer"
-
Hi @Tai Lam Phat, Eventually you should decide what you want. It is all a matter of concept, you should decide what you want to use and when, and if it should be seen or not. Best Practice: "Due Date" usualy come as a request from business to the developer as a deadline. Of course developer will be in pressure, he should…